linker - LINK Error while using C++ library (ITERATOR_DEBUG_LEVEL) -
i coding games in c++ , have use graphical engine called playlib, made in university near me, unfortunately when run main.cpp file "includes" , "additional libraries", gives me same error! (on visual studio 2015, while on vc++2010 works - prefer first one). error output message following:
1>link : warning lnk4075: ignoring '/incremental' due '/ltcg' specification 1>main.obj : warning lnk4075: ignoring '/editandcontinue' due '/opt:lbr' specification 1>playlib.lib(graphics.obj) : error lnk2038: mismatch detected '_msc_ver': value '1600' doesn't match value '1900' in main.obj 1>playlib.lib(graphics.obj) : error lnk2038: mismatch detected '_iterator_debug_level': value '0' doesn't match value '2' in main.obj 1>link : warning lnk4098: defaultlib 'msvcrt' conflicts use of other libs; use /nodefaultlib:library 1>playlib.lib(graphics.obj) : error lnk2001: unresolved external symbol __imp__vsprintf 1>playlib.lib(graphics.obj) : error lnk2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exception::exception(char const * const &)" (__imp_??0exception@std@@qae@abqbd@z) 1>c:\users\casa\documents\visual studio 2015\projects\batalhanaval\debug\batalhanaval.exe : fatal error lnk1120: 2 unresolved externals
the main.cpp , header.h correct, think problem may lie on project settings or on library itself. please me can work on battleship game - desperate put hands on haha
thanks - guilherme
link : warning lnk4098: defaultlib 'msvcrt' conflicts use of other libs
i had same warning using libraries. helped me going through #include directives in whole project , changing old style includes new style ones: example: math.h had change cmath stdio.h, cstdio ad on.
if doesn't have issue runtime libraries. if use visual studio can play them in project properties->c/c++->code generation->runtime libraries.
Comments
Post a Comment