VC++ and SDL question

This probably isn’t real specific to SDL but here goes…

I usually code in Linux. But at work I only have Windows so I am using
VS.NET. I got everything setup and working correctly, but there are some
lines in my code that I don’t understand because I don’t do hardly any
Windows Programming with C++.

#ifdef WIN32
#pragma comment(lib, “SDL.lib”)
#pragma comment(lib, “SDLmain.lib”)
#endif

Could someone briefly explain what these lines do?

Thanks.

Gregg

#ifdef WIN32
#pragma comment(lib, “SDL.lib”)
#pragma comment(lib, “SDLmain.lib”)
#endif

if compiler works on win32, link with SDL.lib and SDLmain.lib

Don’t ask me, how linker understand preprocessor directives_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail