I think this is just a general compiler problem, but it might be something
that a lot of Windows SDL coders come across:
Despite the extern “C” declaration of SDL_main (in SDL_main.h), my MSVC6
project insists on generating a decorated name for the function
(_SDL_main@@YAHHQAPBD at Z). Anyone know why this is happening? It compiles
and links fine with BeOS gcc.
Regards,
Darren
Oops. It was my mistake, and was actually more of a C thing. I defined
main as ‘int main(int, const char**)’. (const is a habit) Apologies!
At 07:51 PM 6/27/00 -0700, you wrote:>I think this is just a general compiler problem, but it might be something
that a lot of Windows SDL coders come across:
Despite the extern “C” declaration of SDL_main (in SDL_main.h), my MSVC6
project insists on generating a decorated name for the function
(_SDL_main@@YAHHQAPBD at Z). Anyone know why this is happening? It compiles
and links fine with BeOS gcc.
Regards,
Darren
Despite the extern “C” declaration of SDL_main (in SDL_main.h), my MSVC6
project insists on generating a decorated name for the function
(_SDL_main@@YAHHQAPBD at Z). Anyone know why this is happening?
yes, what happens is ?"%@ Microsoft 
add /EXPORT:SDL_main in linker options line to fix this problem–
Sincerely
Fred ~
? ?
/V
// \
/( )
^`~’^