|Re: Can't compile w/ boost one linux in C++ [message #1072647 is a reply to message #1072059]
||Tue, 23 July 2013 03:57
| Axel Mueller
Registered: July 2009
"/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'"
That is an error message from the linker. You need to add the corresponding boost libraries.
I've added -lboost_filesystem and -lboost_system to other flags in miscellaneous still I can't compile.
You are on the right way. But you should not add these flags to the compiler but to the linker page. Go to "C/C++ Build" -> "Settings" and then hit the "Libraries" item under "GCC C++ Linker". Here you should your libraries boost_filesystem and boost_system.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
Powered by FUDForum
. Page generated in 0.02321 seconds