This is the mail archive of the
mailing list for the Cygwin project.
Re: g++ won't compile 'hello world'
- From: Keen Wayne A Contr AFRL/MNGG <keenwa at eglin dot af dot mil>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Wed, 21 Aug 2002 09:35:42 -0500
- Subject: Re: g++ won't compile 'hello world'
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
ng++ -o hello hello.cpp -L/mygcc/lib
Now, I just checked my current version of Cygwin, which has for gcc:
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
--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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html