Appzyt
New Member
- Joined
- Jun 1, 2008
- Messages
- 92
- Reaction score
- 0
Hai
I am have some problems when trying to compile the TFS source code as a console application. I have read the guide but there is something not going as it should here.
Also note while compiling as GUI it works fine.
Here is how I have set my project options:
These are the errors showing in the "Compile Log"
and these at the "Compiler"
When I select Win32 GUI instead of Win32 Console it compiles but the .exe file still shows up as GUI. Any help would be sweet!
I am have some problems when trying to compile the TFS source code as a console application. I have read the guide but there is something not going as it should here.
Also note while compiling as GUI it works fine.
Here is how I have set my project options:
These are the errors showing in the "Compile Log"
Code:
Compiler: Default compiler
Building Makefile: "C:\Users\Max\Desktop\Version 2.0.0\Compiler\Källor\dev-cpp\Makefile.win"
Executing make...
make.exe -f "C:\Users\Max\Desktop\Version 2.0.0\Compiler\Källor\dev-cpp\Makefile.win" all
windres.exe -i TheForgottenServer_private.rc --input-format=rc -o obj//TheForgottenServer_private.res -O coff
g++.exe obj//actions.o obj//allocator.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.o obj//protocolold.o obj//condition.o obj//configmanager.o obj//connection.o obj//container.o obj//creature.o obj//creatureevent.o obj//cylinder.o obj//database.o obj//databasemysql.o obj//databasesqlite.o obj//depot.o obj//exception.o obj//fileloader.o obj//game.o obj//gui.o obj//house.o obj//housetile.o obj//inputbox.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//items.o obj//luascript.o obj//mailbox.o obj//map.o obj//md5.o obj//monster.o obj//monsters.o obj//movement.o obj//networkmessage.o obj//npc.o obj//otserv.o obj//outfit.o obj//outputmessage.o obj//party.o obj//player.o obj//playerbox.o obj//position.o obj//protocol.o obj//protocolgame.o obj//protocollogin.o obj//quests.o obj//raids.o obj//rsa.o obj//scheduler.o obj//scriptmanager.o obj//server.o obj//sha1.o obj//spawn.o obj//spells.o obj//status.o obj//talkaction.o obj//tasks.o obj//teleport.o obj//textlogger.o obj//thing.o obj//tile.o obj//tools.o obj//trashholder.o obj//vocation.o obj//waitlist.o obj//weapons.o obj//ioban.o obj//globalevent.o obj//gameservers.o obj//databasemanager.o obj//admin.o obj//protocolhttp.o obj//group.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"C:/Users/Max/Desktop/Version 2.0.0/Compiler/Dev-Cpp/lib" -O1 -lboost_system -lgmp -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s
obj//gui.o:gui.cpp:(.text+0x1a5): undefined reference to `_CreateFontIndirectA@4'
obj//inputbox.o:inputbox.cpp:(.text+0x3b0): undefined reference to `_CreateFontIndirectA@4'
obj//inputbox.o:inputbox.cpp:(.text+0x621): undefined reference to `_DeleteObject@4'
make.exe: *** [TheForgottenServer.exe] Error 1
Execution terminated
and these at the "Compiler"
Code:
[Linker error] undefined reference to `_CreateFontIndirectA@4'
[Linker error] undefined reference to `_CreateFontIndirectA@4'
[Linker error] undefined reference to `_DeleteObject@4'
C:\Users\Max\Desktop\Version 2.0.0\Compiler\Källor\dev-cpp\Makefile.win [Build Error] [TheForgottenServer.exe] Error 1
When I select Win32 GUI instead of Win32 Console it compiles but the .exe file still shows up as GUI. Any help would be sweet!