[問題] MinGW 使用 VC Static Library?

看板C_and_CPP (C/C++)作者 (wnuiayldh)時間14年前 (2011/10/12 23:58), 編輯推噓2(203)
留言5則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) mingw32, vc6 問題(Question): 使用 vc6 編好的 .lib 可以直接讓 mingw 使用? static library 不管是 vc6 使用 mingw 或 mingw 使用 vc6 都沒成功過 link 時,還是都找不到 lib 的 class http://www.mingw.org/wiki/MixingCompilers 在 wiki 上看到 Even though GNU g++ can link MSVC C++ libraries now, and can produce MSVC++ compatible libraries/DLLs, this does not mean that they will be able to work at run-time due to the dynamic nature of C++. 至少可以 link 成功才是? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.39.49.180 ※ 編輯: deepking 來自: 114.39.49.180 (10/13 00:00)

10/13 00:00, , 1F
直接用是不行的..~"~, http://tinyurl.com/3cctmlk
10/13 00:00, 1F

10/13 00:01, , 2F
多 google 吧, 對岸有很多解法..
10/13 00:01, 2F

10/13 00:05, , 3F
像reimp 但是就不吃編出來的.lib ... 一直goo一直試
10/13 00:05, 3F

10/13 00:08, , 4F
不知道是 calling convention 這類問題? 研究中~
10/13 00:08, 4F

10/13 00:18, , 5F
dump symbol name 出來看看..?
10/13 00:18, 5F
文章代碼(AID): #1EbRaaO0 (C_and_CPP)
文章代碼(AID): #1EbRaaO0 (C_and_CPP)