visual studio 2012 - C++ game. Error code when compiling. Error LNK2019 -
this question has answer here:
okay.. may stupid question. followed tutorial on how make game engine. have been fighting way through several errors, , think i'm getting last errors. here errors:
error 1 error lnk2019: unresolved external symbol _imp_messageboxa@16 referenced in function __catch$_wwinmain@16$0
error 2 error lnk2019: unresolved external symbol "public: __thiscall engine::engine(void)" (??0engine@@qae@xz) referenced in function _wwinmain@16
error 3 error lnk2019: unresolved external symbol "public: void __thiscall engine::go(void)" (?go@engine@@qaexxz) referenced in function _wwinmain@16
error 4 error lnk1120: 3 unresolved externals
code:
#include <windows.h> #include "engine.h" int winapi wwinmain(hinstance hinstance, hinstance hprevinstance, pwstr pcmdline, int ncmdshow) { engine* engine = new engine(); try { engine->go(); } catch(char* e) { messageboxa(null, e, "exception occured", mb_ok | mb_iconerror); } } so kinda guessed wwinmain thing, have made.but problem is, unclear me.
thanks in advance.
error lnk2019: unresolved external symbol __imp__messageboxa@16 referenced in function __catch$_wwinmain@16$0 this error indicates need link project against user32.lib.
error lnk2019: unresolved external symbol "public: __thiscall engine::engine(void)" (??0engine@@qae@xz) referenced in function _wwinmain@16 error lnk2019: unresolved external symbol "public: void __thiscall engine::go(void)" (?go@engine@@qaexxz) referenced in function _wwinmain@16 these errors indicate need compile , link engine.cpp project.
Comments
Post a Comment