Thread: [Cppcms-users] Compiling Help
Brought to you by:
artyom-beilis
From: Peter N. <cou...@gm...> - 2012-02-20 05:22:02
|
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 |
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 > > > |
From: Peter N. <cou...@gm...> - 2012-02-21 13:21:59
|
Sorry to get back to you so late. Perfect thank you this worked like a charm. Off topic, CppDB, anyway that will be added to the repo? Anyway fantastic work. This is going to be fun! I wish this project the best of luck and will do my best to contribute. On Sun, Feb 19, 2012 at 11:46 PM, Artyom Beilis <art...@ya...> wrote: > 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 > > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Artyom B. <art...@ya...> - 2012-02-21 13:39:30
|
> > Off topic, CppDB, anyway that will be added to the repo? Yes. when I'll get to it... > > Anyway fantastic work. This is going to be fun! I wish this > project the best of luck and will do my best to contribute. > I'm glad to hear. Artyom Beilis ------------- Support CppCMS by donating money: https://sourceforge.net/donate/index.php?group_id=209965 |