[問題] MSVC包Pthread的函式庫
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
https://www.sourceware.org/pthreads-win32/
問題(Question):
最近打算把一個 unmanaged library, C++ ---(a)
包成 managed library, C++/cli -----------(b)
給一個應用程式使用 application, C# ----- (c)
全部都可以編譯過
只是(c)在跑的時候會出現
System.IO.FileNotFoundException的錯誤
但如果把(a)的pthread部分註解掉
然後重新包成(b)給(c)用, 又是正常的
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
(a),(b),(c)都是用 Visual Studio Ultimate 2013 寫
會搞這麼麻煩是因為(a)本來是在Linux上面的程式
不知道是哪邊出了問題..
求大大指點了<(_ _)>
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.45.207.136
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1451054275.A.91D.html
※ 編輯: zelkova (114.45.207.136), 12/25/2015 22:40:36
→
12/25 22:41, , 1F
12/25 22:41, 1F
→
12/25 22:41, , 2F
12/25 22:41, 2F
→
12/26 10:55, , 3F
12/26 10:55, 3F
→
12/27 13:31, , 4F
12/27 13:31, 4F
補上相關專案目錄
https://mega.nz/#!VwZUSTbT!ETu3qFCjhRNaRlQFgaKkS3F0n_hYhEqZvRrHNgqyRiU
部屬結構為這樣
C:\MSVC_HELLO_PTHREAD
├ HelloCSharp
├ ManagedLib
├ UnmanagedLib
└ Pthread32
※ 編輯: zelkova (114.45.207.136), 12/27/2015 13:35:31