Author Topic: VC++ Toolkit 2003 and SDL problem...  (Read 3973 times)

rad

  • Guest
VC++ Toolkit 2003 and SDL problem...
« on: August 05, 2005, 12:40:27 pm »
Hi everyone,
When I tray to compile sample C::B SDL project I receive message:

LINK fatal error LNK1181: cannot opoen input file 'mingw32.lib'

I remimd that I use VC++ Toolki compiler - so why C::B demands 'mingw32' library?
I removed <Add library="mingw32"/> from sdlapp.cbp file but I receive another message:

LINK fatal error LNK1104: cannot open file 'msvcrt.lib'

What should I do to compile SDL program?
PS I installed: Ms SDK and SDL files (1.2.8)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: VC++ Toolkit 2003 and SDL problem...
« Reply #1 on: August 05, 2005, 04:04:23 pm »
Try seraching for that msvcrt.lib in your SDK directory (and below).

Then add such directory to your "Linker directories"

Offline grv575

  • Official tester
  • Regular
  • ***
  • Posts: 381
Re: VC++ Toolkit 2003 and SDL problem...
« Reply #2 on: August 08, 2005, 03:46:03 am »
msvcrt.lib is included in the dotnet 1.1 sdk.  See http://wiki.codeblocks.org/index.php/Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_%28MSW%29#Building_wxWidgets_2.6.1_mingw32_.26_vc.2B.2B_toolkit_2003
for details on getting the vc++ toolkit working for large projects (like wxwindows).  the toolkit is missing some stuff that's either in the platform sdk or the dotnet 1.1 sdk.  setting the PATH, INCLUDE, and LIB variables to the right paths makes this a workable solution for using vc++ toolkit 2003 as the main compiler.