c++ - Visual Studio Code Importation -
this question has reply here:
what undefined reference/unresolved external symbol error , how prepare it? 23 answersi'm working on visual studio (for c++ , opengl i'm neewbie) , i've imported code alternative in visual studio "import project code" not compile...
the problem code isn't mine (co-worker) , cannot contact author (vacation...) know on witch environment runs.. or inquire him convert code... utilize freeimage library thinks it's detail.
i error " cannot start programm, specified file cannot found"...
then i've got errors unsolvable symbols wierd part in console writes :
error lnk2005: _main defined in dummy.obj error lnk2019: unsolved external symbol __imp_freeimage_initialise@4 referenced in main function error lnk2019: unsolved external symbol __impfreeimage_deinitialise@0 ...
and 1 in code there no @0, mean...?
unresolved external means there linker dependency not met.
basically, message means vs cannot find freeimage library. in install directory of freeimage, there should .lib somewhere. in project settings, under linker, create sure freeimage .lib file there , additionnal library directory contains path .lib is.
c++ visual-studio-2012
No comments:
Post a Comment