Hi everyone. I installed Cygwin a little days ago to use gcc & g++. I tried "gcc hello.c -o test" ,but no error messages were printed and no file were made.(So do g++ & hello.cpp)
I tried Automake for hello.c on Cygwin, then $ ./configure checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. And config.log says This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by FULL-PACKAGE-NAME configure VERSION, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = your-dz88tzdc7k uname -m = i686 uname -r = 1.5.25(0.156/4/2) uname -s = CYGWIN_NT-5.1 uname -v = 2008-06-12 19:34 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/X11R6/bin PATH: /usr/bin PATH: /usr/lib/lapack ## ----------- ## ## Core tests. ## ## ----------- ## configure:1697: checking for gcc configure:1724: result: gcc configure:1962: checking for C compiler version configure:1969: gcc --version >&5 gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1972: $? = 0 configure:1979: gcc -v >&5 Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) configure:1982: $? = 0 configure:1989: gcc -V >&5 gcc: `-V' option must have argument configure:1992: $? = 1 configure:2015: checking for C compiler default output file name configure:2042: gcc conftest.c >&5 configure:2045: $? = 1 configure:2083: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "FULL-PACKAGE-NAME" | #define PACKAGE_TARNAME "full-package-name" | #define PACKAGE_VERSION "VERSION" | #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION" | #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2090: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set=set ac_cv_env_CC_value=gcc ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_prog_ac_ct_CC=gcc ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='gcc' CFLAGS='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' OBJEXT='' PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' PACKAGE_NAME='FULL-PACKAGE-NAME' PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' PACKAGE_TARNAME='full-package-name' PACKAGE_VERSION='VERSION' PATH_SEPARATOR=':' SHELL='/bin/sh' ac_ct_CC='gcc' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "FULL-PACKAGE-NAME" #define PACKAGE_TARNAME "full-package-name" #define PACKAGE_VERSION "VERSION" #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION" #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS" configure: exit 77 Thanks for your help. And Sorry for my poor English. -- View this message in context: http://www.nabble.com/configure%3A2090%3A-error%3A-C-compiler-cannot-create-executables-tp18345234p18345234.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/