Debug build failure due to boost linking error

Bug #1069730 reported by Shujing Ke on 2012-10-22
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
High
linas

Bug Description

I can build the release version. But the debug version by
SET(CMAKE_BUILD_TYPE Debug) in the CMakelist
 got these errors:

Linking CXX executable msgtester
libMessagingSystem.so: undefined reference to
`boost::gregorian::greg_month::as_short_string() const'
libMessagingSystem.so: undefined reference to
`boost::gregorian::greg_month::as_long_string() const'
collect2: ld returned 1 exit status
make[2]: *** [opencog/embodiment/Control/MessagingSystem/msgtester] Error 1
make[1]: *** [opencog/embodiment/Control/MessagingSystem/CMakeFiles/msgtester.dir/all]
Error 2
make: *** [all] Error 2

David Hart (dhart) on 2012-10-22
Changed in opencog:
importance: Undecided → High
status: New → Confirmed
linas (linasvepstas) wrote :

I pushed bzr rev 7882 which I think should fix this.

=== modified file 'opencog/embodiment/Control/MessagingSystem/CMakeLists.txt'
--- opencog/embodiment/Control/MessagingSystem/CMakeLists.txt 2012-10-21 22:35:18 +0000
+++ opencog/embodiment/Control/MessagingSystem/CMakeLists.txt 2012-10-22 14:55:50 +0000
@@ -29,6 +29,10 @@
 TARGET_LINK_LIBRARIES (MessagingSystem
  Control
  spacetime
+ ${Boost_DATE_TIME_LIBRARY}
+ ${Boost_FILESYSTEM_LIBRARY}
+ ${Boost_SIGNALS_LIBRARY}
+ ${Boost_THREAD_LIBRARY}
 )

 # ------------------------------------------------------

Changed in opencog:
assignee: nobody → linas (linasvepstas)
status: Confirmed → Fix Committed
linas (linasvepstas) on 2012-10-25
Changed in opencog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers