g++ undefined reference to `boost::system::system_category()'

后端 未结 1 1098
情深已故
情深已故 2021-01-04 03:19

I have searched high and low for answer to this issue. I am using boost 1.48 and the program is extremely simple, since I have broken it down to its simplest form in order

相关标签:
1条回答
  • 2021-01-04 04:02

    Put the source file at the beginning of the command line.

    Try

    g++ -m32 -Wall mapnik-test.cpp -o mapnik-test -L/usr/lib -I/usr/include -I/usr/include/freetype2 -lpthread -lboost_system
    

    The libraries should be specified only after the source file so that the linker can resolve the undefined references in the source file.

    0 讨论(0)
提交回复
热议问题