c++ - SOIL not linking correctly -


i linking soil in library when compile these linker errors:

 1>link : warning lnk4098: defaultlib 'msvcrt' conflicts 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 addition dependencies.

the unresolved symbol errors, error lnk2019, symbols in libgcc.lib or standard library implementation (see here microsoft options) not being linked to. alloca , sqrtf both standard library functions.

if aren't linking standard library, link 1 adding linker library path.

from warning above warning lnk4098, more linking standard library linker doesn't know on load.

recommend linker arguments make problem go away (tell linker choose specific standard library) /nodefaultlib:"msvcrt" /nodefaultlib:"libcmt.

see following links additional information , resources


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

delphi - How to convert bitmaps to video? -