Hi,
gestern ließ sich mein Projekt noch einwandfrei kompilieren, doch heute nicht mehr. Ich musste erneut einstellen, dass die
LIBCMTD.lib beim Linken ignoriert werden soll, doch erhalte ich nun diese Fehler:
Zitat:
Linking...
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_snake::paint_head(void)" (?paint_head@cl_snake@@QAEXXZ) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_map::print_map_a_star(int)" (?print_map_a_star@cl_map@@QAEXH@Z) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_snake::paint_snake(bool)" (?paint_snake@cl_snake@@QAEX_N@Z) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_snake::move(void)" (?move@cl_snake@@QAEXXZ) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "char __cdecl a_star(class cl_map *,class cl_food *,class cl_snake *,int,int,bool)" (?a_star@@YADPAVcl_map@@PAVcl_food@@PAVcl_snake@@H H_N@Z) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_snake::set_direction(char)" (?set_direction@cl_snake@@QAEXD@Z) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_snake::initialize(void)" (?initialize@cl_snake@@QAEXXZ) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: void __thiscall cl_map::paint_map(void)" (?paint_map@cl_map@@QAEXXZ) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: __thiscall cl_snake::cl_snake(int,class cl_map *,class cl_food *,bool)" (??0cl_snake@@QAE@HPAVcl_map@@PAVcl_food@@_N@Z) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: __thiscall cl_food::cl_food(class cl_map *)" (??0cl_food@@QAE@PAVcl_map@@@Z) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: __thiscall cl_map::cl_map(void)" (??0cl_map@@QAE@XZ) referenced in function _main
tiny_snake.obj : error LNK2019: unresolved external symbol "public: __thiscall cl_snake::~cl_snake(void)" (??1cl_snake@@QAE@XZ) referenced in function "public: void * __thiscall cl_snake::`scalar deleting destructor'(unsigned int)" (??_Gcl_snake@@QAEPAXI@Z)
tiny_snake.obj : error LNK2019: unresolved external symbol "public: __thiscall cl_map::~cl_map(void)" (??1cl_map@@QAE@XZ) referenced in function "public: void * __thiscall cl_map::`scalar deleting destructor'(unsigned int)" (??_Gcl_map@@QAEPAXI@Z)
tiny_snake.obj : error LNK2019: unresolved external symbol "public: __thiscall cl_food::~cl_food(void)" (??1cl_food@@QAE@XZ) referenced in function "public: void * __thiscall cl_food::`scalar deleting destructor'(unsigned int)" (??_Gcl_food@@QAEPAXI@Z)
.\Debug/tiny_snake.exe : fatal error LNK1120: 14 unresolved externals
Build log was saved at "file://d:\Eigene Dateien\FHTE\Vorlesungen\Informatik 1\Workspace\tiny_snake\Debug\BuildLog.htm"
tiny_snake - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Was bedeutet das denn? Beim Linker musste ich sonst nichts einstellen.
Und wie kann es sein, dass meine Projekteinstellungen verloren gegangen sind, die müsste es doch irgendwo speichern?
Edit: Auch Dinge wie
@@QAEPAXI@Z sagen mir überhaupt nichts.