Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <30C9E24891FFD411B68A009027724CB702C04D4A@eg-002-015.eglin.af.mil> From: Keen Wayne A Contr AFRL/MNGG To: "'cygwin AT cygwin DOT com'" Subject: Re: g++ won't compile 'hello world' Date: Wed, 21 Aug 2002 09:35:42 -0500 I have had what may be similar problems in the past, when I was compiling with a new release (home built) of gcc and in the link process, its was looking for things like libraries in the wrong place. In that case, I forced it to grab the right stuff by my compile command, i.e. ng++ -o hello hello.cpp -L/mygcc/lib Now, I just checked my current version of Cygwin, which has for gcc: gcc -v Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/3.1.1/specs Configured with: /netrel/src/gcc-3.1.1-4/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin Thread model: posix gcc version 3.1.1 20020718 (prerelease) And it compiled fine. Have you done anything to override where gcc should look for its libraries. Have you perhaps had setup overwrite some of the 3.1.1 stuff with 2.95 stuff.....I am guessing here...I'll just shutup now. Wayne Keen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/