看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Windows Eclipse MinGW 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) Tomcrypt 問題(Question): 我目前使用eclipse + MinGW編譯都沒有問題 但是我想要使用tomcrypt 的RSA,所以需要加上他的lib project -> properties -> C/C++ BUILD -> settings -> MinGW Linker -> Libraries 這邊我也是有將.lib 的path加入 但是compile 的時候還是會出錯.... 我上網也查過很多 實在是不知道哪裡沒有link到 不知道哪位大大可以提醒一下 順道問一下 mingw 應該是吃.a對吧 因為他是unix的...有點忘了 (但是我將tomcrypt.a的PATH加入也是會出現錯誤....) 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lD:/~/tomcrypt.lib 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): 我是下載tomcrypt source code 放到linux底下先做make的到.a .lib -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.166.173.246 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1441126499.A.2DE.html ※ 編輯: jack155069 (118.166.173.246), 09/02/2015 00:55:36
Sanvean: Librarys 指的是要 Link 的 Library 名稱(如:tomcrypt) 09/13 21:43
Sanvean: 令外還要把library所在路徑加到linker的搜尋路徑中。 09/13 21:46