CodeWarrior 7 for Windows...Again!

I just installed CW7 on Windows XP and I’m having problems creating SDL
projects. I get these errors:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__strncpy in
SDLmain.lib (.\Release\SDL_main.obj)


Link Error : Undefined symbol: __imp__fclose in
SDLmain.lib (.\Release\SDL_main.obj)

I’ve read previous emails from people having similar problems but I
couldn’t find what to do exactly…any idea?

Thanks & sorry for posting repeated questions,
Mahmoud Al Gammal

yikes…if at all possible, take your code warrior disks, burn them and
pretend youve never heard of it.

codewarrior isnt a real compiler, it isnt designed for anything except
learning.

go here and get dev-C++, it uses g++, probably the best compiler out there
and its free (:

http://www.bloodshed.net/> ----- Original Message -----

From: obos@menanet.net (Mahmoud Al Gammal)
To:
Sent: Saturday, July 20, 2002 8:22 AM
Subject: [SDL] CodeWarrior 7 for Windows…Again!

I just installed CW7 on Windows XP and I’m having problems creating SDL
projects. I get these errors:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__strncpy in
SDLmain.lib (.\Release\SDL_main.obj)


Link Error : Undefined symbol: __imp__fclose in
SDLmain.lib (.\Release\SDL_main.obj)

I’ve read previous emails from people having similar problems but I
couldn’t find what to do exactly…any idea?

Thanks & sorry for posting repeated questions,
Mahmoud Al Gammal


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

yikes…if at all possible, take your code warrior disks, burn them and
pretend youve never heard of it.

That is not productive.

I don’t have Codewarrior 7 available, but it looks like SDL_main needs to
linked with the C runtime library. Look for something in the "MSL"
subdirectories that it can link with.

–ryan.

np. i’m not sure off the top of my head all of the things i needed to change
(don’t have sdl here at home to check). but i know you need to include both
msl_all_d and msl_all in the compile…doesn’t make sense, but you do. also,
if you want, when i return to work on monday, i can email you the CW7
project files i am using.

–Keith> I just installed CW7 on Windows XP and I’m having problems creating SDL

projects. I get these errors:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__strncpy in
SDLmain.lib (.\Release\SDL_main.obj)


Link Error : Undefined symbol: __imp__fclose in
SDLmain.lib (.\Release\SDL_main.obj)

I’ve read previous emails from people having similar problems but I
couldn’t find what to do exactly…any idea?

Thanks & sorry for posting repeated questions,
Mahmoud Al Gammal


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

MSL_ALL & MS_ALL_D were already added to the project. I added MS_ALL-
DLL_X86 & its _D version and managed to minimize the errors from 9 to
just two:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp___iob in
SDLmain.lib (.\Release\SDL_main.obj)

I’ll keep trying anyway, and I’ll be grateful if you send me a project
that compiles.

Thanks,
Mahmoud

P.S.: To Ryan, I added all types of MSL_C_XXX libraries, but nothing
helped>np. i’m not sure off the top of my head all of the things i needed to change

(don’t have sdl here at home to check). but i know you need to include both
msl_all_d and msl_all in the compile…doesn’t make sense, but you do. also,
if you want, when i return to work on monday, i can email you the CW7
project files i am using.

–Keith

I just installed CW7 on Windows XP and I’m having problems creating SDL
projects. I get these errors:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp__strncpy in
SDLmain.lib (.\Release\SDL_main.obj)


Link Error : Undefined symbol: __imp__fclose in
SDLmain.lib (.\Release\SDL_main.obj)

I’ve read previous emails from people having similar problems but I
couldn’t find what to do exactly…any idea?

Thanks & sorry for posting repeated questions,
Mahmoud Al Gammal


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


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

MSL_ALL & MS_ALL_D were already added to the project. I added MS_ALL-
DLL_X86 & its _D version and managed to minimize the errors from 9 to
just two:

Link Error : Undefined symbol: __imp__exit in
SDLmain.lib (.\Release\SDL_main.obj)

Link Error : Undefined symbol: __imp___iob in
SDLmain.lib (.\Release\SDL_main.obj)

You may need to include src/main/win32/SDL_main.c in your project
instead of trying to use the Visual C++ built version of SDLmain.lib

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment