undefined reference to 'console_init' - General Discussion and Assistance - CHDK Forum

undefined reference to 'console_init'

  • 2 Replies
undefined reference to 'console_init'
« on: 30 / June / 2008, 22:10:40 »
I am working on the SD300 port and it core\main.c warns about an implicit declaration of console_init.  It goes on to error out stating "undefined reference to 'console_init'" in core_spytask from main.c.

The code is not very different from the SD500 code, so I am confused why this is coming up.

Anyone seen this before/have any ideas?  Will post code if need be...


Offline waldo

  • ***
  • 238
Re: undefined reference to 'console_init'
« Reply #1 on: 30 / June / 2008, 23:20:04 »
If you are asking what the error means, it sounds like a linker error saying that it could not find the console_init function. 

If you are trying to resolve this reference, you must add this function.  I believe it is a fairly new function, so maybe you are trying to link to an older version of the source.  This function exists in the SD400 code, so you might look at that.  The SD400 code is probably a closer match to the SD300 than the SD500 code you mentioned anyway.

Re: undefined reference to 'console_init'
« Reply #2 on: 01 / July / 2008, 01:41:02 »
I actually don't see it in any files except the generic file.  I did get it compiling though.  The CAM_CONSOLE_LOG_ENABLED define needed to be unset.


Related Topics

SimplePortal 2.3.6 © 2008-2014, SimplePortal