[操作疑難] Mingw64 with no cc.exe (C Compiler available)?

Tried re-direction by the .bash_profile at home directory
  1. export CC='/mingw/bin/x86_64-w64-mingw32-gcc.exe -IC:/MinGW/include -IC:/MinGW/x86_64-w64-mingw32/include'
  2. export CPP='/mingw/bin/x86_64-w64-mingw32-cpp.exe -IC:/MinGW/include -IC:/MinGW/x86_64-w64-mingw32/include'
  3. export CXX='/mingw/bin/x86_64-w64-mingw32-g++.exe -IC:/MinGW/x86_64-w64-mingw32/include/c++/4.7.0 -IC:/MinGW/x86_64-w64-mingw32/include/c++/4.7.0/x86_64-w64-mingw32'
  4. export CXXCPP='/mingw/bin/x86_64-w64-mingw32-g++.exe -E'
  5. export CFLAGS="-mtune=core2 -mthreads -mms-bitfields -O2 -static-libgcc"
  6. export CXXFLAGS="-mtune=core2 -mthreads -mms-bitfields -O2 -static-libstdc++"
  7. export LDFLAGS='-LC:/MinGW/lib -LC:/MinGW/x86_64-w64-mingw32/lib -LC:/MinGW/lib/gcc/x86_64-w64-mingw32/4.7.0'
  8. export PATH=/mingw/bin:/mingw/x86_64-w64-mingw32/bin:/mingw/libexec/gcc/x86_64-w64-mingw32/4.7.0:/usr/bin
  9. export PKG_CONFIG_PATH=/mingw/lib/pkgconfig
複製代碼
Still has no cc.exe to work.
gcc.exe is already working
Why
Thanks

本帖最後由 dsscss 於 2014-10-6 21:21 編輯

你睇番C:\MinGW\msys\1.0\bin 呢個PART係無cc.exe的...
cc.exe 在 C:\MinGW\bin

你用MSYS行, MOUNT完個FOLDER之後睇 0下 有無cc.exe 先  ...
(我只係用32BIT VERSION...)
==============================
/* main.c */

#include <stdio.h>

int main()
{
        printf("Hello world");
        return 0;
}
--------------------------------------------------
cc -o main main.c

頭先試 0左, cc WORK 哎...

TOP

cc.exe 是否沒有64-bit version的?
我下載了Msys 64-bit,內裡不含cc.exe
THX

TOP

相關文章