This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
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:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]