Codewarrior maincrt.obj error

Mario, I’m having the exact same problem you described with codewarrior 7
in this thread.

http://www.libsdl.org/pipermail/sdl/2002-February/042237.html

Specifically
6) All test projects complained about an undefined symbol “_main” in
SDLmain.x86.lib or MSL-All-DLL_x86.lib (maincrt.obj).

I’m not sure how to solve it however from your post. Where are you
defining “main”? This define is not fixing the problem with me. Any light
you can shed is greatly appreciated!

#if defined(_MSC_VER) && !defined(_WIN32_WCE)
/* The VC++ compiler needs main defined */
#define console_main main
#endif

Thank you
John Corliss

hi, i am currently using CW7 and have working project files for the tests. i
am not sure where you got yours from, but i worked with another guy about a
month ago to get things working. are you compiling for windows or mac?? i’m
assuming windows. If so, make sure you have both MSL_All_x86.lib and
MSL_All_x86_D.lib as libs. i know it doesn’t make sense, but that should
work. if not, i can send you a project file for CW7.

–keith> Mario, I’m having the exact same problem you described with codewarrior 7

in this thread.

http://www.libsdl.org/pipermail/sdl/2002-February/042237.html

Specifically
6) All test projects complained about an undefined symbol “_main” in
SDLmain.x86.lib or MSL-All-DLL_x86.lib (maincrt.obj).

I’m not sure how to solve it however from your post. Where are you
defining “main”? This define is not fixing the problem with me. Any light
you can shed is greatly appreciated!

#if defined(_MSC_VER) && !defined(_WIN32_WCE)
/* The VC++ compiler needs main defined */
#define console_main main
#endif

Thank you
John Corliss


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl