[問題] boost regex 的 linker error

看板C_and_CPP作者 (*〞︶〝*)時間9年前 (2014/10/17 00:30), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Windows Eclipse IDE for C/C++ Developers, Version: Kepler Service Release 1 Toolchain: MinGW GCC 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) Boost 問題(Question): 我先用 bjam --toolset=gcc --with-regex install 產生了regex的.a檔 之後到eclipse設定如下 http://ppt.cc/CgQX library path 我填了 .a檔的目錄位置 libraries 我填了 .a檔的檔案名稱 但之後compile的結果顯示無法找到檔案 請問大大是哪個地方設定錯誤呢? 謝謝 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 00:25:22 **** Incremental Build of configuration Debug for project hello **** Info: Internal Builder is used for build g++ "-LC:\\EclipseLibrary\\Boost\\lib" -o hello.exe "src\\hello.o" -llibboost_regex-mgw48-mt-1_56 -llibboost_regex-mgw48-mt-d-1_56 c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -llibboost_regex-mgw48-mt-1_56 c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -llibboost_regex-mgw48-mt-d-1_56 collect2.exe: error: ld returned 1 exit status 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): 無 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.251.145.52 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1413477059.A.7D6.html

10/17 00:45, , 1F
把 lib 拿掉改成 boost_regex-mgw48-mt-1_56 試試
10/17 00:45, 1F

10/17 00:56, , 2F
過了!! 謝謝H大大
10/17 00:56, 2F
文章代碼(AID): #1KF_B3VM (C_and_CPP)