Page 2 of 2
Re: Compile Error
Posted: 08 Jul 2008, 05:03
by Crank
Ok I fixed the problem, no where in the guide did it say you have to add the guichan directory for the linker in the compiler setttings. But anywho, got it to go all the way through. But says this:
Code: Select all
Linking executable: tmw.exe
mingw32-g++.exe: .objs\src\gui\popup_box.o: No such file or directory
Process terminated with status 1 (1 minutes, 41 seconds)
0 errors, 0 warnings
Wont give me my executable nor will it run. Any ideas?
Re: Compile Error
Posted: 08 Jul 2008, 06:09
by ElvenProgrammer
Remove popup_box.cpp from the project
Re: Compile Error
Posted: 08 Jul 2008, 06:23
by Crank
Awesome, that fixed that problem. But strangely enough, more.
Code: Select all
undefined reference to `ShopItem::ShopItem(int, int, int)'
.objs\src\gui\shop.o:shop.cpp:(.text+0x4c5): undefined reference to `ShopItem::ShopItem(int, int, int)'
.objs\src\main.o:main.cpp:(.text+0x3044): undefined reference to `NPCDB::unload()'
.objs\src\main.o:main.cpp:(.text+0x5b0f): undefined reference to `NPCDB::load()'
.objs\src\npc.o:npc.cpp:(.text+0x198): undefined reference to `NPCDB::get(int)'
.objs\src\npc.o:npc.cpp:(.text+0x55e): undefined reference to `NPCDB::get(int)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 9 seconds)
6 errors, 1 warnings
Re: Compile Error
Posted: 08 Jul 2008, 06:28
by ElvenProgrammer
Yep unfortunately the project file is a bit out of date, try adding resources/npcdb.cpp and shopitem.cpp
Re: Compile Error
Posted: 08 Jul 2008, 06:43
by Crank
Wow thanks for all the help. Pretty noobish mistakes but would have been easier if these project files were up to date haha. This whole time I thought it was more library troubles.
Thanks everyone!