Re: [Cppcms-users] Compiling Help
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-02-20 07:47:11
|
You do not link with cppcms library. You need to pass parameters -L/usr/local/lib -lcppcms Alternatively you may also install CppCMS to /usr instead of /usr/local by passing -DCMAKE_INSTALL_PREFIX=/usr when building CppCMS and then you'll need -lcppcms flag only. Artyom Beilis >________________________________ > From: Peter N. <cou...@gm...> >To: cpp...@li... >Sent: Monday, February 20, 2012 7:21 AM >Subject: [Cppcms-users] Compiling Help > > >I'm running Ubuntu and I'm trying to setup KDevelop so onc I click build everything runs. I'm having just basic setup issues... > >main.cpp:(.text+0x23): undefined reference to `cppcms::service::service(int, char**)' >main.cpp:(.text+0x59): undefined reference to `cppcms::service::applications_pool()' >main.cpp:(.text+0x68): undefined reference to `cppcms::applications_pool::mount(std::auto_ptr<cppcms::applications_pool::factory>)' >main.cpp:(.text+0x8c): undefined reference to `cppcms::service::run()' >main.cpp:(.text+0x98): undefined reference to `cppcms::service::~service()' >main.cpp:(.text+0xe0): undefined reference to `cppcms::service::~service()' >/tmp/ccE58iHq.o: In function `post::post(cppcms::service&)': >main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x1f): undefined reference to `cppcms::application::application(cppcms::service&)' >main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x2a): undefined reference to `vtable for post' >collect2: ld returned 1 exit status > >It looks like it's not linking right to the library... -l /home/user... is where I initially built them all from the latest source (0.999.1 at this time). > >I did a make install as well, it did copy them to /usr/local/lib/ > >I added /usr/local/lib/ to my PATH env as well and did relog. > >Any other suggestions? It looks like it just isn't able to refeernce the libraries > > > > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |