Linking to SDL.lib & SDLmain.lib results in conflicts

Hi,

I’m having serious trouble setting up SDL to work with my MSVC++ Compiler. If I link to SDL.lib & SDLmain.lib in my project settings menu than the program does not compile because of conflicts with default libraries like msvcrt.lib & libc.lib. If I choose the ‘no default libs’ option than the SDL libraries don’t give any conflicts but the program doesn’t compile because there are other libraries missing.

What is the proper way to set up the SDL libraries for my compiler?

Thanks in advance,

Peter

Peter Venis wrote:

What is the proper way to set up the SDL
libraries for my compiler?

Project | Settings | C/C++ | Code Generation | Runtime Library |
Multithreaded DLL

http://www.libsdl.org/faq/FAQ-Win32.html#WIN32_3b

  • Randi

Regimental Command
Generic Armored Combat System
http://regcom.sourceforge.net

Many thanks for the help,

Peter>Project | Settings | C/C++ | Code Generation | Runtime Library |

Multithreaded DLL

http://www.libsdl.org/faq/FAQ-Win32.html#WIN32_3b

  • Randi

Regimental Command
Generic Armored Combat System
http://regcom.sourceforge.net

----- Original Message -----
From: piusii@gmx.de (Johannes Fortmann)
To:
Sent: Monday, June 18, 2001 6:05 PM
Subject: Re: [SDL] Linking to SDL.lib & SDLmain.lib results in conflicts

What is the proper way to set up the SDL libraries for my compiler
[VC++]?

Under ‘Project settings’/‘C/C++’, category ‘Code generation’ you have to
choose ‘Multithreaded DLL’ as the runtime library.

SDL.dll is linked against the mt-library and your program is probably
being
linked against the st-library. If you put those together, there will be
conflicts.

HTH

What is the proper way to set up the SDL libraries for my compiler [VC++]?

Under ‘Project settings’/‘C/C++’, category ‘Code generation’ you have to
choose ‘Multithreaded DLL’ as the runtime library.

SDL.dll is linked against the mt-library and your program is probably being
linked against the st-library. If you put those together, there will be
conflicts.

HTH