Hi guys,
I have a class declared and defined in AliHLTMessageQueue.h and AliHLTMessageQueue.cxx respectively
template<typename MessageType, int kSignalNumber = SIGUSR1>
class AliHLTMessageQueue{.//declarations etc..}
I also have a file queueTest.cxx where i call AliHLTMessageQueue methods.
I declare my object like as:
AliHLTMessageQueue<int> queue(20000000);
And I made this call somewhere in queueTest.cxx:
queue.Push(m, COUNT,true,0,true);
I compile my files with Makefile and this is the line in the make file:
g++ -O3 -Wall -Werror -DNDEBUG -pthread $(CXXFlags) AliHLTMessageQueue.cxx queueTest.cxx -o $@
I get the error:
undefined reference to`AliHLTMessageQueue<int, 10>::Push(int const*, unsigned, int, bool, float, bool)'
I DON'T UNDERSTAND THIS BECAUSE I INCLUDE THE SOURCE FILE WHERE I DEFINED THE METHOD Push WHILE COMPILING. Any suggestions?