看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) linux x86 - ubuntu 14.04.1 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) no 問題(Question): 自己使用linux C 語言做了一個 shared library (.so file) 按照網路教學,add library的方式加入了自己的library 在.pro file 中可以看到我的library 在LIBS 的地方有被加入 但是當我去使用的時候卻無法編譯成功 會出現 “undefined reference to API_FUNCTION()” 看起來是與我自己做的api library 沒有link 成功 不曉得還需要哪些步驟 希望有人可以提點一下,謝謝 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.70.38.80 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1431346435.A.D07.html
x000032001: gcc -lXX 05/11 21:20
tinlans: 你開發平台沒有寫完整 05/12 03:18
tinlans: 光是在 ubuntu 上開發這件事不會出現 .pro file 05/12 03:19
Bencrie: 大概是 Qt 吧 05/12 08:48
WYchuang: 有重新run qmake嘛? 05/12 14:18