开发者

Problem with link to boost library, but boost library exists

I try to run a simulator (GPGPU-sim). However, when I make, there are errors with link to boost library. Below is part of the error code. Other error messages are similar to it.

    /usr/include/boost/regex/v4/basic_regex.hpp:425: error: undefined
reference to 'boost::basic_regex<char, bo开发者_高级运维ost::regex_traits<char,
boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*,
unsigned int)'

The make option is:

FLAGS = -ggdb -I${BOOST_ROOT} -lboost_regex -lboost_filesystem

The {BOOST_ROOT} does not the directory. However, I checked the /usr/lib and libboost_regex.a and libboost_filesystem.a files actually exist.

Can you help me to figure it out?

Thanks, Jason


check that you have correct version of libboost_regex.a. just build it from sources that your compile with


Please post the full command line that fails. From what your posted, it seems like the command line would have -lboost_regex before the list of object files. Try moving it after that list.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜