• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Task.cpp function compiling linker error help please :/

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
Hello

I wanna add function to task.cpp, look all post.


my acttually funcion is

Code:
void Dispatcher::addTask(Task* task)

and i wanna change to better new addTask function:

Code:
void Dispatcher::addTask(Task* task, bool push_front /*= false*/)

I have added it in task.cpp & task.h everything is compiling and in the end when i got compiling exe i have error in console:

Code:
  [Linker error] undefined reference to `Dispatcher::addTask(Task*)'


I had same problem with compiling onDeath please anyone can help me? I have to add something in .o files? please!

I use TFS


-D__NO_HOMEDIR_CONF__
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__

-O1
-lgmp
-llua5.1
-lmysql
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
-lboost_regex
-lboost_thread
-lboost_system

I didn't add something but WHERE is this?

- - - Updated - - -

reffffff
 
Last edited:
Back
Top