Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CArray Pin
cuteee16-Feb-06 5:56
cuteee16-Feb-06 5:56 
GeneralRe: CArray Pin
ThatsAlok16-Feb-06 17:17
ThatsAlok16-Feb-06 17:17 
QuestionWhere is 'this'? Pin
CodyDaemon15-Feb-06 13:02
CodyDaemon15-Feb-06 13:02 
QuestionUndefined symbol when compiling for Picotux Pin
Ed.Poore15-Feb-06 11:23
Ed.Poore15-Feb-06 11:23 
AnswerRe: Undefined symbol when compiling for Picotux Pin
Stephen Hewitt15-Feb-06 11:46
Stephen Hewitt15-Feb-06 11:46 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ed.Poore15-Feb-06 11:54
Ed.Poore15-Feb-06 11:54 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Stephen Hewitt15-Feb-06 12:02
Stephen Hewitt15-Feb-06 12:02 
AnswerRe: Undefined symbol when compiling for Picotux Pin
Dan McCormick15-Feb-06 12:58
Dan McCormick15-Feb-06 12:58 
So, what do we know...

1) it doesn't work when items are in separate files. It complains about 'Z10gpio_writeP13gpio_handle_tjj' (which we think is a decorated name) not being defined at link time. As for my guess, the true routine name is gpio_write() and it's first argument is a gpio_handle object. Am I close? Smile | :)

2) it does work when we cram everybody into the same file - inelegant but all the names are there.

Hmm....

Question: in case (1) is the project building a mix of .c and .cpp files? If so, then I would say that the 'missing routines' live in a .c file and export undecorated names in the .o modules whereas the .cpp files are generating decorated names for the linker to fixup.

If that is the case then you need to ensure the .cpp code knows that the gpio_* routines are 'C' routines and not 'C++' routines. Checkout Linkage to Non-C++ Functions[^] for information on how to tell C++ code to expect undecorated names. Gcc surely provides a similar mechanism, if not this exact same one.

If that's not the case, then I guess an "oh well, never mind" is in order.

Later,
Dan


Remember kids, we're trained professionals. Don't try this at home!

-- modified at 18:59 Wednesday 15th February, 2006
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ryan Binns15-Feb-06 17:47
Ryan Binns15-Feb-06 17:47 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ed.Poore15-Feb-06 20:08
Ed.Poore15-Feb-06 20:08 
AnswerRe: Undefined symbol when compiling for Picotux Pin
Ryan Binns15-Feb-06 17:46
Ryan Binns15-Feb-06 17:46 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ed.Poore15-Feb-06 20:11
Ed.Poore15-Feb-06 20:11 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ryan Binns15-Feb-06 21:55
Ryan Binns15-Feb-06 21:55 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ed.Poore16-Feb-06 11:55
Ed.Poore16-Feb-06 11:55 
QuestionWin32 worth it? Pin
Zanathel15-Feb-06 10:58
Zanathel15-Feb-06 10:58 
AnswerRe: Win32 worth it? Pin
Michael Dunn15-Feb-06 12:03
sitebuilderMichael Dunn15-Feb-06 12:03 
GeneralRe: Win32 worth it? Pin
Ed K15-Feb-06 15:10
Ed K15-Feb-06 15:10 
GeneralRe: Win32 worth it? Pin
ThatsAlok16-Feb-06 2:46
ThatsAlok16-Feb-06 2:46 
GeneralRe: Win32 worth it? Pin
Blake Miller16-Feb-06 12:21
Blake Miller16-Feb-06 12:21 
GeneralRe: Win32 worth it? Pin
Blake Miller16-Feb-06 12:19
Blake Miller16-Feb-06 12:19 
AnswerRe: Win32 worth it? Pin
Ashutosh_shashi15-Feb-06 17:42
Ashutosh_shashi15-Feb-06 17:42 
GeneralRe: Win32 worth it? Pin
Zanathel16-Feb-06 3:25
Zanathel16-Feb-06 3:25 
QuestionDebug Assertion failed Pin
cuteee15-Feb-06 10:28
cuteee15-Feb-06 10:28 
QuestionRe: Debug Assertion failed Pin
David Crow16-Feb-06 3:29
David Crow16-Feb-06 3:29 
QuestionCPU usage 100% Pin
lynchspawn15-Feb-06 10:15
lynchspawn15-Feb-06 10:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.