Edit: I did change my source's and now it do work!
Im trying to compile TFS 0.3.6 pl1 and i do get a linker error.
Anyone know what might be the problem?
I do use stians Dev-Cpp
I did also remove this files from source, if that might cause the problem?
Since thay did also give me some errors, but when i did remove them it works fine untill the very last end where i get the linker errors
Linkers:
C++ Compiler
I get this error:
Compile log:
Im trying to compile TFS 0.3.6 pl1 and i do get a linker error.
Anyone know what might be the problem?
I do use stians Dev-Cpp
I did also remove this files from source, if that might cause the problem?
Since thay did also give me some errors, but when i did remove them it works fine untill the very last end where i get the linker errors
Code:
databaseodbc.cpp
databaseodbc.h
databasepgsql.cpp
databasepgsql.h
protocolhttp.cpp
protocolhttp.h
Linkers:
Code:
-O1
-lboost_system
-lgmp
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
-lboost_filesystem
-lboost_thread
-lz
-lcryptopp
-leay32
C++ Compiler
Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__
-O2
-m64
I get this error:
Code:
[Linker error] undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
[Linker error] undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
[Linker error] undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
[Linker error] undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
[Linker error] undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
E:\Program\OTS - cryingdamson6-gui\source 0.3.6pl1\dev-cpp\Makefile.win [Build Error] [TheForgottenServer.exe] Error 1
Compile log:
Code:
Compiler: Default compiler
Building Makefile: "E:\Program\OTS - cryingdamson6-gui\source 0.3.6pl1\dev-cpp\Makefile.win"
Executing make...
make.exe -f "E:\Program\OTS - cryingdamson6-gui\source 0.3.6pl1\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//admin.o obj//allocator.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.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//databasemanager.o obj//databasemysql.o obj//depot.o obj//exception.o obj//fileloader.o obj//game.o obj//gameservers.o obj//globalevent.o obj//group.o obj//gui.o obj//house.o obj//housetile.o obj//inputbox.o obj//ioban.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//itemattributes.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//protocolold.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//databasesqlite.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"C:/Users/jocke/Desktop/Stian's Repack Dev-Cpp v2/lib" -L"C:/Users/jocke/Desktop/Stian's Repack Dev-Cpp v2/lib" -mwindows -O1 -lboost_system -lgmp -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s -lboost_filesystem -lboost_thread -lz -lcryptopp -leay32
obj//iologindata.o:iologindata.cpp:(.text+0x29bdf): undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
obj//iomapserialize.o:iomapserialize.cpp:(.text+0x726c): undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
obj//iomapserialize.o:iomapserialize.cpp:(.text+0xfae2): undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
obj//iomapserialize.o:iomapserialize.cpp:(.text+0x13225): undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
obj//luascript.o:luascript.cpp:(.text+0x1ee0): undefined reference to `DBInsert::DBInsert(DatabaseMySQL*)'
make.exe: *** [TheForgottenServer.exe] Error 1
Execution terminated
Last edited: