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: 06 Jul 2008, 15:54

Re: Compile Error

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

Re: Compile Error

Post by ElvenProgrammer »

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

Re: Compile Error

Post 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

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

Re: Compile Error

Post by ElvenProgrammer »

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: 06 Jul 2008, 15:54

Re: Compile Error

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