I am trying to make a server application and when I build my project I get this errors regarding linking:
- Code: Select all
make all
Building target: Chat_Server
Invoking: MacOS X C++ Linker
g++ -L/Users/panaitcosmin/Documents/poco-1.4.6-all/lib/Darwin/x86_64 -o "Chat_Server" ./src/Chat_Server.o ./src/Server.o
Undefined symbols:
"Poco::Util::ServerApplication::run()", referenced from:
vtable for ServerApp::Serverin Server.o
"Poco::Util::Application::uninitialize()", referenced from:
ServerApp::Server::uninitialize() in Server.o
"Poco::Util::Application::handleOption(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
vtable for ServerApp::Serverin Server.o
"typeinfo for Poco::Util::ServerApplication", referenced from:
typeinfo for ServerApp::Serverin Server.o
"Poco::Util::Application::reinitialize(Poco::Util::Application&)", referenced from:
vtable for ServerApp::Serverin Server.o
What exacty is happening? I have to declare all the inherited virtual methods from Application class, or...? I searched all google links regarding this and I don't get it how to fix this.
I'm building in Eclipse under MacOs Snow Leopard and I am using GCC compiler for C++.
Thank you!





