[問題] QT 使用 Miracl 函式庫
小弟的QT環境是QT SDK,使用QT creator,
想在QT中跑Miracl, http://www.shamus.ie/
我把Miracl下載解壓縮之後,
到裡面的lib資料夾,把miracl.a copy到qt的lib資料夾中,
然後再把miracl資料夾中的include,copy到qt的include中,
開啟console專案後,
我有在.pro檔案裡面加上 LIBS += -L"C:\Qt\2010.02.1\qt\lib\miracl.a"
無奈在編譯的時候出現,
c:/Qt/2010.02.1/qt/include/miracle/big.h:94: undefined reference to `mirsys'
c:/Qt/2010.02.1/qt/include/miracle/big.h:100: undefined reference to `mirexit'
c:/Qt/2010.02.1/qt/include/miracle/big.h:139: undefined reference to `mirvar'
:-1: error: collect2: ld returned 1 exit status
我之前在跑gmp這個函式庫時,假如沒有加上LIBS+= -lgmp(其他步驟相同)
也是這種情形,而我gmp有順利的跑成功,
所以我想是連結部份出了問題,
請問各位有經驗的版友,能夠幫小弟只點一下迷津,
非常感謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 120.126.18.212
→
03/12 09:28, , 1F
03/12 09:28, 1F
→
03/13 17:02, , 2F
03/13 17:02, 2F
→
03/13 17:03, , 3F
03/13 17:03, 3F
→
03/13 17:03, , 4F
03/13 17:03, 4F
→
03/13 21:30, , 5F
03/13 21:30, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章