Complie wrong according to the wiki tutorials

Get answers to all your basic programming questions. No Ogre questions, please!

Complie wrong according to the wiki tutorials

Postby mohusheng » Mon Jun 24, 2013 4:50 am

I complied sources in Archlinux, and boost's version is 1.53.0-2.

wiki tutorial link:

http://www.ogre3d.org/tikiwiki/tiki-ind ... ls+-+Linux

Bash output error message:

/usr/bin/ld: OgreApp-BaseApplication.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib/libboost_system.so.1.53.0 so try adding it to the linker command line
/usr/lib/libboost_system.so.1.53.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [OgreApp] Error 1
make[1]: Leaving directory `/home/sheng/shengEngine'
make: *** [all] Error 2

How to fix it?
mohusheng
Gnoblar
 
Posts: 2
Kudos: 0
Joined: 24 Jun 2013

Re: Complie wrong according to the wiki tutorials

Postby dermont » Mon Jun 24, 2013 9:54 am

You probably need to add -lboost_system to the libraries your linking against.
dermont
Gnoll
 
Posts: 674
Kudos: 26
Joined: 09 Dec 2004
Location: Kuala Lumpur

Re: Complie wrong according to the wiki tutorials

Postby mohusheng » Mon Jun 24, 2013 10:08 am

dermont wrote:You probably need to add -lboost_system to the libraries your linking against.


Thanks.
mohusheng
Gnoblar
 
Posts: 2
Kudos: 0
Joined: 24 Jun 2013

Re: Complie wrong according to the wiki tutorials

Postby Kojack » Tue Jun 25, 2013 2:19 am

The need for boost system only came in around boost 1.50, so that tutorial hasn't been updated for the current version yet.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
 
Posts: 6419
Kudos: 406
Joined: 25 Jan 2004
Location: Brisbane, Australia


Return to Back to Basics

Who is online

Users browsing this forum: No registered users and 2 guests