All of lore.kernel.org
 help / color / mirror / Atom feed
* Boost - undefined references when linking
@ 2014-02-13 22:36 Chris Tapp
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Tapp @ 2014-02-13 22:36 UTC (permalink / raw)
  To: Yocto Project

I've got an autotools project which uses 'boost'. All was working great until I added some code which uses additional boost functionality. I'm now getting the following undefined references reported:

| File.o: In function `thread_exception':
| /media/SSD-RAID/build-danny-cedartrail/tmp/sysroots/cedartrail/usr/include/boost/thread/exceptions.hpp:49: undefined reference to `boost::system::system_category()'
| /media/SSD-RAID/build-danny-cedartrail/tmp/sysroots/cedartrail/usr/include/boost/thread/exceptions.hpp:49: undefined reference to `boost::system::system_category()'

The project builds fine natively on my Ubuntu system.

I did have a lot more similar messages, but adding:

#define BOOST_SYSTEM_NO_DEPRECATED

before including the boost headers got rid of everything but the above.

What do I need to add to the project / .bb file to solve the above?

There

Chris Tapp

opensource@keylevel.com
www.keylevel.com





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Boost - undefined references when linking
@ 2014-02-13 22:36 Chris Tapp
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Tapp @ 2014-02-13 22:36 UTC (permalink / raw)
  To: Yocto Project

I've got an autotools project which uses 'boost'. All was working great until I added some code which uses additional boost functionality. I'm now getting the following undefined references reported:

| File.o: In function `thread_exception':
| /media/SSD-RAID/build-danny-cedartrail/tmp/sysroots/cedartrail/usr/include/boost/thread/exceptions.hpp:49: undefined reference to `boost::system::system_category()'
| /media/SSD-RAID/build-danny-cedartrail/tmp/sysroots/cedartrail/usr/include/boost/thread/exceptions.hpp:49: undefined reference to `boost::system::system_category()'

The project builds fine natively on my Ubuntu system.

I did have a lot more similar messages, but adding:

#define BOOST_SYSTEM_NO_DEPRECATED

before including the boost headers got rid of everything but the above.

What do I need to add to the project / .bb file to solve the above?

There

Chris Tapp

opensource@keylevel.com
www.keylevel.com





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-13 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13 22:36 Boost - undefined references when linking Chris Tapp
  -- strict thread matches above, loose matches on Subject: below --
2014-02-13 22:36 Chris Tapp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.