SDL linker problem

my headers are
1
2
3
#include "SDL.h"
#include "SDL_image.h"
#include <string> 


and i am getting these errors

1
2
3
4
1
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>main.obj : error LNK2019: unresolved external symbol _IMG_Load referenced in function "struct SDL_Surface * __cdecl loadImage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?loadImage@@YAPAUSDL_Surface@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>C:\Users\david\Documents\Visual Studio 2010\Projects\SDL Projects\Debug\SDL Projects.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited on
You're not linking to the SDL library. I would see about excluding 'msvcrt.lib' from this build if you have to, but I don't use VS so it may not be needed.
Topic archived. No new replies allowed.