I'm trying to convert a project that was previously using only C code over to C++, have done all the necessary changes to remove all the errors and warnings from the compiler, only to be backhand slapped by linker errors.
Any ideas?
已解决! 转到解答。
Solved.
Had I remembered to include in all the previously used files, this would have been an non issue:
#ifdef __cplusplus } #endif
From the error messages you are not linking with the correct set of libraries. For example _start() is defined in the ANSI C/C++ library. Can you check your library settings?
I hope this helps,
Erich
Thank you for your reply.
I'm trying to drag the project I'm working on from a CodeWarrior 7.1 project forward into at least CW 10.x, and to use C++, but there's nobody at the company I work for who has attempted this, so I'm on my own (and sorry for my ignorance on this).
Maybe I'm missing what steps need taken to make this work. Can you tell me what libraries I should be linking against? Or is it some other library setting that I'm being dense to?