- 10 名前:デフォルトの名無しさん mailto:sage [2009/01/22(木) 02:09:13 ]
- OS: Mac OS X 10.5.6
コンパイラ: gcc 4.0.1 boost: 1_37_0 この環境で,filesystemをソースからビルドしてパスを通して, g++ test.cpp -lboost_filesystem-gcc40-mt-1_37 みたいにコンパイルしようとすると,リンカがsymbol not foundとエラーをはきます. ubuntuでは問題ないためmac特有の問題だと思うのですが,原因,対策がお分かりの方いらっしゃいませんか? ちなみに,以下がコンパイル結果です. g++ test.cpp -lboost_filesystem-gcc40-mt-1_37 Undefined symbols: "boost::system::get_generic_category()", referenced from: __static_initialization_and_destruction_0(int, int)in ccCDIN5Z.o (長いので中略) libboost_filesystem-gcc40-mt-1_37.a(operations.o) __static_initialization_and_destruction_0(int, int)in libboost_filesystem-gcc40-mt-1_37.a(operations.o) ld: symbol(s) not found collect2: ld returned 1 exit status
|

|