Compile sdl_image 1.2 on windows 64

Why do I get lots of errors alike:
Error?? ?7?? ?error LNK2001: unresolved external symbol
_SDL_SetError?? ?H:\CPP-Win\SDL_image-1.2.12\VisualC\IMG_webp.obj??

when I try to compile sdl_image with vc? I’ve added the path to sdl
and sdl_image libs. I have mostly used Eclipse on Linux so I might have
overlooked something.