Re: C++ link errors using gcc from cvs

2002-03-24 Thread Christopher Currie
I finally figured out what I was doing wrong, and I thought I'd post to the list to document my findings. The important 'configure' flag is --enable-version-specific-runtime-libs This flag is specific to libstdc++, and specifies that the runtime libraries (including libstdc++.a) be installed in

Re: C++ link errors using gcc from cvs

2002-03-17 Thread Christopher Currie
On Sun, 17 March 2002, Tim Prince wrote > I thought everyone recognized that mixing c++ libraries between gcc-3.1 and > gcc-2.95 was even less likely to work than between gcc-3.0x and 2.95. Even > the use of 2.95 with non-default stack alignment is enough to break the > libraries which come wi

Re: C++ link errors using gcc from cvs

2002-03-17 Thread Tim Prince
On Sunday 17 March 2002 20:34, Christopher Currie wrote: > I recently installed gcc from cvs, since I understand people have had > success with it, pretty much out of the box. I'm getting link errors > compiling trival C++ programs, with both my local g++ and the Cygwin > standard g++. I can overc

RE: C++ link errors using gcc from cvs

2002-03-17 Thread Robert Collins
BTW: You probably should use --enable-threads=posix when building gcc targeted for cygwin. Cheers, Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: h

C++ link errors using gcc from cvs

2002-03-17 Thread Christopher Currie
I recently installed gcc from cvs, since I understand people have had success with it, pretty much out of the box. I'm getting link errors compiling trival C++ programs, with both my local g++ and the Cygwin standard g++. I can overcome these errors if I explicitly link the right copy of libstd

RE: C++ Link Errors

2002-01-04 Thread Parker, Ron
Solution found. I had built and installed various alternate versions of gcc into /usr/local. Despite the fact that I placed /usr/local/bin after /usr/bin in my path so that I would get the default cygwin gcc for this project, /usr/bin/gcc was still passing -L/usr/local/lib before -L/usr/lib whe

RE: C++ Link Errors

2002-01-04 Thread Parker, Ron
> > g++ -Wl,--enable-auto-import -ftemplate-depth-99 -O2 -o uml.exe > [...] > > After a number of auto-import warnings, which I expect, like: > > Warning: resolving QString::shared_null by linking to > > __imp___7QString$shared_null (auto-import) > > > I receive a series of messages, which I do

Re: C++ Link Errors

2002-01-04 Thread Gerrit P. Haase
Hallo Ron, Am 2002-01-03 um 18:51 schriebst du: > I am trying to build the Linux UML modeler with cygwin. Everything works > until I link. Libtool tries adding -ldl to the g++ linking call. If I enter > g++ command by hand without the -ldl everything is fine, except I get a > number of C++ rela

Re: C++ Link Errors

2002-01-03 Thread Mike Fahlbusch
At 11:51 AM 1/3/02 -0600, you wrote: >I am trying to build the Linux UML modeler with cygwin. Everything works >until I link. Libtool tries adding -ldl to the g++ linking call. If I enter >g++ command by hand without the -ldl everything is fine, except I get a >number of C++ related linking erro

C++ Link Errors

2002-01-03 Thread Parker, Ron
I am trying to build the Linux UML modeler with cygwin. Everything works until I link. Libtool tries adding -ldl to the g++ linking call. If I enter g++ command by hand without the -ldl everything is fine, except I get a number of C++ related linking errors. My command line is: g++ -Wl,--enable