Overview
Features
Download
Documentation
Community
Add-Ons & Services

Problems building Application in Eclipse under MacOs

Please post support and help requests here.

Problems building Application in Eclipse under MacOs

Postby cosu2004 » 26 Jan 2013, 02:22

Hello guys,

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
...there are many and is not relevant to show them all because it is the same problem for all

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!
cosu2004
 
Posts: 14
Joined: 05 Jul 2012, 10:50

Re: Problems building Application in Eclipse under MacOs

Postby rakesh » 26 Jan 2013, 04:12

The -L flag only tells the linker where to search for libraries, but you have not specified the libraries to link to (eg. -lPocoFoundation)
rakesh
 
Posts: 78
Joined: 13 Apr 2011, 17:43
Location: Chicago


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests