Compile Error

Ask for help regarding any technical issue or report any bug or OS independent issues.
User avatar
Crank
Peon
Peon
Posts: 27
Joined: Sun Jul 06, 2008 4:54 pm

Re: Compile Error

Post by Crank » Tue Jul 08, 2008 6:03 am

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?
Call me Crank :3. I am a man, display picture is the misses.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Re: Compile Error

Post by ElvenProgrammer » Tue Jul 08, 2008 7:09 am

Remove popup_box.cpp from the project
User avatar
Crank
Peon
Peon
Posts: 27
Joined: Sun Jul 06, 2008 4:54 pm

Re: Compile Error

Post by Crank » Tue Jul 08, 2008 7:23 am

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

Call me Crank :3. I am a man, display picture is the misses.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Re: Compile Error

Post by ElvenProgrammer » Tue Jul 08, 2008 7:28 am

Yep unfortunately the project file is a bit out of date, try adding resources/npcdb.cpp and shopitem.cpp
User avatar
Crank
Peon
Peon
Posts: 27
Joined: Sun Jul 06, 2008 4:54 pm

Re: Compile Error

Post by Crank » Tue Jul 08, 2008 7:43 am

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!
Call me Crank :3. I am a man, display picture is the misses.
Post Reply