[llvm-bugs] [Bug 26401] New: undefined reference to boost::gregorian::greg_month::get_month_map_ptr()

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 30 22:36:41 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26401

            Bug ID: 26401
           Summary: undefined reference to
                    boost::gregorian::greg_month::get_month_map_ptr()
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: 565434471 at qq.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15769
  --> https://llvm.org/bugs/attachment.cgi?id=15769&action=edit
compiler errors

clang++ -std=c++11 -I /home/liukai/local/include/boost SceneServer.cpp -o
SceneServer -L/home/liukai/local/lib -lboost_date_time always was failure.

SceneServer/SceneServer.cpp.1.o: In function `unsigned short
boost::date_time::month_str_to_ushort<boost::gregorian::greg_month>(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/home/liukai/local/include/boost/date_time/date_parsing.hpp:67: undefined
reference to `boost::gregorian::greg_month::get_month_map_ptr()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

But I changed 'clang++' to 'gcc' that displayed successfully.

Who can tell me why?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160131/0bf13e11/attachment.html>


More information about the llvm-bugs mailing list