Linking problems with MSVC++6

When I try to compile and link my SDL program I get this linking error
message:
SDLmain.lib(SDL_main.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _SDL_main

What is the reason for this?

drakos at bloodtide.de wrote:

When I try to compile and link my SDL program I get this linking error
message:
SDLmain.lib(SDL_main.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _SDL_main

What is the reason for this?

The Visual C linker documentation says that this error is caused by a
problem with varibles that have external linkage.

However, you possibly have not used the correct ‘main’ function

SDL looks for:

int main(int argc, char **argv){

    //your code here

    return 0;

}

it will not link if you use something like

void main(void){

}

HTH

  • Tom

i’m looking for sdl.lib & sdlmain.lib. where can i find it? someone can send it to me? thx__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!

You build those from the directory you installed SDL into. Look in the
install directory for a zip titled “VisualC.zip.”

For example, I downloaded the latest CVS build and saved it to SDL-1.2.6
on my C:\ drive, so the zip you’re looking for, in my case, would be
C:\SDL-1.2.6\VisualC.zip

Hope this helps

ktlliure at netscape.net wrote:>i’m looking for sdl.lib & sdlmain.lib. where can i find it? someone can send it to me? thx


Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promos=380455


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