Compiling tests in CW7 under windowsXP

Hi, I am trying to compile test applications for SDL, however, I am getting link errors with SDL.x86.lib

there are undefined symbols __files and _main

I am including the following libs when linking

SDL.x86.lib
SDLmain.x86.lib
MSL_ALL-DLL_x86.lib

any ideas??

I’ve tried using the libs in MSVC++ 6, but as i assumed, they didn’t work. I also tried using the libs compiled in MSVC++ in CW, no go.

thanks.

Hi, I am trying to compile test applications for SDL, however, I am getting link errors with SDL.x86.lib

there are undefined symbols __files and _main

I am including the following libs when linking

SDL.x86.lib
SDLmain.x86.lib
MSL_ALL-DLL_x86.lib

Try right-clicking on SDLmain.x86.lib, go to disassemble and verify that
_main is in the library. (Do a find for “main”). If it is there, I have
no clue why it won’t link.

You can also use the same trick on MSL_ALL-DLL_x86.lib to see if __files
is being exported. __files is a global for stdin and stdout.

Since I’m using pro6 and pro5, I can’t advise much on any further steps
you could take. I would like to know (assuming you get it to work) how you
fixed the problem, so I can make note of it in the projects readme.

Thanks,
DarrellOn Thu, 21 Mar 2002, tracstarr wrote: