Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOIL not linking correctly [duplicate]

I am linking SOIL in my library but when I compile I get these linker errors:

1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libSOIL.lib(stb_image_aug.o) : error LNK2019: unresolved external symbol __alloca referenced in function _stbi_zlib_decode_noheader_buffer
1>libSOIL.lib(image_helper.o) : error LNK2019: unresolved external symbol _sqrtf referenced in function _RGBE_to_RGBdivA2

I did link libSOIL.lib in the addition dependencies.

like image 902
Bumrang Avatar asked Mar 09 '12 05:03

Bumrang


1 Answers

Fixed the error.

Although I'm using VC2010, I built the VC8 libraries. I then added SOIL.lib instead of libSOIL.lib. Errors went away.

like image 88
Bumrang Avatar answered Sep 21 '22 20:09

Bumrang