[問題] mingw-64如何編譯出64位元的exe檔?

看板C_and_CPP (C/C++)作者 (獨立黑色色彩)時間13年前 (2013/01/25 19:51), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) win 7 + mingw-w64 (GCC) + Eclipse (IDE) c:\> gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/program files/mingw64/bin/../libexec/gcc/x86_64-w64-mingw 32/4.7.3/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: /home/drangon/work/mingw-w64-dgn/source/gcc/configure --host=x8 6_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-nls --enable-languages=c, c++,objc,obj-c++ --with-gmp=/home/drangon/work/mingw-w64-dgn/build/for_target -- enable-twoprocess --disable-libstdcxx-pch --disable-win32-registry --prefix=/hom e/drangon/work/mingw-w64-dgn/target --with-sysroot=/home/drangon/work/mingw-w64- dgn/target Thread model: win32 gcc version 4.7.3 20130103 (prerelease) (GCC) 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 如何編出X64的exe檔 餵入的資料(Input): #include <stdio.h> #include <stdlib.h> int main(void) { printf("Hello Eclipse\n"); system("pause");//暫停功能 return 0; } 預期的正確結果(Expected Output): 在工作管理員中沒有 Hollo.exe*32 而編出 Hollo.exe (沒有*32) -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.63.132

01/29 13:13, , 1F
自問自答 重建專案就可以了
01/29 13:13, 1F
文章代碼(AID): #1H0d6jK0 (C_and_CPP)
文章代碼(AID): #1H0d6jK0 (C_and_CPP)