Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





hellou problem with visual studio 2005 pro linking

Iniciado por icke, 31 de Agosto de 2007, 08:43:54 PM

« anterior - próximo »

icke

i checked things again and now i know the real problem:
i used for my main function "int main(void)"
this gets to the link error with SDL_main!!!
you have to use:
"int main( int argc, char* argv[])"
thats it!
-----------------------------------------------------------------
i configuered everything like you said in your
"How to install it on Win32 environment (Visual Studio)"

i get 2 link errors:
sdlmain.lib(SDL_win32_main.obj) :
error LNK2019: Verweis auf nicht aufgelöstes externes
Symbol "_SDL_main" in Funktion "_main"

its german sorry.
its something like: no solved external symbol "..."

do i have to put external third party libs package somewhere?
because of the sdl_win32_main.obj thing...

i'd lovely would use your lib cause i think its the best lib for easy gameprogramming with all i need :)

thanks in advance

TheAzazel

Hi icke,

sorry for my late answer but I was on holidays a full month :).

I see you have solved it, yes, you have to use "int main(int argc, char *argv[])".

You just need to link against CRM32Pro.lib and sdlmail.lib(or sdlmainIO.lib if you wish to have more output).

Cheers!