Problem linking Boost Signals 1.34.0
undefined reference to boost::signals::detail::signal_base::signal_base(boost::function2
boost::function_base> const &) Do I need to link in additional Boost libraries? What about this use of boost::any?
Following http://www.boost.org/doc/html/signals/tutorial.html#id1628486 you need to link against the library (statically or dynamically). boost::any is only the template parameter from compiler's error message. Regards, Olaf
On 18/07/07, Craig Sanders
Hello.
I hope someone can help me. I have just installed Boost 1.34.0 (actually just the thread and signlas libraries) under Fedora Core 2. However, when I attempt to link a simple test program that makes use of the signals library in 1.34.0, the program fails to link. Boost 1.31.0 comes with Fedora Core 2 and I can successfully link against that, however I can't seem to link against 1.34.0. I am altering the -L and -l compiler options as necessary but I get the following error ;
undefined reference to boost::signals::detail::signal_base::signal_base(boost::function2
boost::function_base> const &) Do I need to link in additional Boost libraries? What about this use of boost::any?
boost::any is a header only library so you don't need to worry about that. What does your compiler (and linker) command line look like? -- Tarjei
participants (3)
-
Craig Sanders
-
Olaf
-
Tarjei Knapstad