|
大虾好:
小弟今天使用了cygwin中的make发生了如下的错误信息:
$ make
cc -c -o main.o main.c
make: cc: Command not found
make: *** [main.o] Error 127
能够确认的是我的cygwin种已经是安装了gcc等等g++等一系列的gcc.
系统本来会在cc没有找到的情况下使用gcc的嘛.
现在不知道能够如何解决?????
不胜感激.
gcc:
$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/package/gcc4-4.3.2-2/src/gcc-4.3.2/configure --srcdir=
/gnu/gcc/package/gcc4-4.3.2-2/src/gcc-4.3.2 --prefix=/usr --exec-prefix=/usr --b
indir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/sbin --datadir=/usr/share -
-localstatedir=/var --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/sh
are/man --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -
v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-
runtime-libs --with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-static --ena
ble-shared --enable-shared-libgcc --enable-__cxa_atexit --with-gnu-ld --with-gnu
-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran
,java,objc,obj-c++ --disable-symvers --enable-libjava --program-suffix=-4 --enab
le-libgomp --enable-libssp --enable-libada --enable-threads=posix AS=/opt/gcc-to
ols/bin/as.exe AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.
exe LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe
Thread model: posix
gcc version 4.3.2 20080827 (beta) 2 (GCC)
g++
$ g++ -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure -
-verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/s
hare/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --wit
hout-included-gettext --enable-version-specific-runtime-libs --without-x --enabl
e-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-li
bgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registr
y --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debu
g
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) |
|