[問題] MSYS下用gcc編譯出的exe檔無法執行
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Windows 7、MinGW、MSYS、GCC
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
crypt
問題(Question):
以gcc -o test -s test.c -lcrypt
compile成功,但是不能run,
一開始執行顯示「無法起動程式,因為您的電腦遺失msys-crypto-0.dll……」,
後來去抓了該dll檔之後,
變成「msys-crypt-0.dll不是設計為在Windows上執行……」,
第一次使用MSYS來編譯,不知道是哪裡做錯了呢?囧
餵入的資料(Input):
N/A
預期的正確結果(Expected Output):
N/A
錯誤結果(Wrong Output):
N/A
程式碼(Code):(請善用置底文網頁, 記得排版)
code : http://codepad.org/Dmhl5Jyx
錯誤的圖片:http://imageshack.us/photo/my-images/263/89718064.png/
補充說明(Supplement):
關於MinGW、MSYS有很多地方不懂,
還請各位高手多擔待,
感激不盡!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.133.99.64
→
06/22 05:10, , 1F
06/22 05:10, 1F
→
06/22 05:11, , 2F
06/22 05:11, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章