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: <3FD54C31.30109@bigpond.com> Date: Tue, 09 Dec 2003 12:14:41 +0800 From: Dean Scarff User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: g++ link errors References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hannu E K Nevalainen wrote: > Your compile displays "gcc version 3.2.3" but > cygcheck output says you have 3.3.* installed. > > May I suggest that you try to uninstall+reinstall the gcc packages? > Though: I'm not sure this will help you. Yep, the problem seemed to be that all the 3.2.3 stuff was in /usr/local thus overriding the 3.3.1 files which use just the /usr prefix. Whether this was a failure of the 3.2.3 uninstall script or not I'm not sure, I had to remove all the old files manually (obviously uninstalling and reinstalling 3.3.1 wouldn't help, as this wasn't the problem). Problem solved, anyway. >>From: Dean Scarff >>Sent: Sunday, December 07, 2003 7:34 AM > > >>Hi, >>I'm getting link errors with libstdc++. At first I thought I must have >>been missing a package, but AFAICS I have all the relevant ones. I >>assumed libstdc++ would be linked in by default from a g++ command line. >> I couldn't see anything similar mentioned in the archives. I assume >>c++ wouldn't be broken by default for the whole distribution like this, >>what have I forgotten (and out of interest, why does the 3.3.1 version >>of gcc and g++ use the 3.2.3 specs)? >> >>scarff-box ~ $ cat nolink.cc >> >>#include >> >>using namespace std; >> >>int >>main(int, char**) >>{ >> cout << "hello."; >>} >> >>scarff-box ~ $ g++ -Wall -v nolink.cc >>Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.2.3/specs >>Configured with: ./configure --enable-languages=objective-c >>--with-system-zlib --without-included-gettext --host=i686-pc-cygwin >>--target=i686-pc-cygwin --prefix=/usr/local/ --exec-prefix=/usr/local : >>(reconfigured) ./configure --target=i686-pc-cygwin --prefix=/usr/local >>--with-as=/usr/bin/as.exe --with-ld=/usr/bin/ld.exe >>--enable-threads=win32 -enable-languages=c,c++,objc >>Thread model: win32 >>gcc version 3.2.3 >> /usr/local/lib/gcc-lib/i686-pc-cygwin/3.2.3/cc1plus.exe -v >>-D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 >>-D__GXX_ABI_VERSION=102 -D_X86_=1 -D_X86_=1 -Asystem=winnt >>-D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 >>-D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ >>-D__stdcall=__attribute__((__stdcall__)) >>-D__cdecl=__attribute__((__cdecl__)) >>-D_stdcall=__attribute__((__stdcall__)) >>-D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) >>-D__i386__ -D__i386 -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ >>-D__unix -isystem /usr/local/include -idirafter >>/usr/local/i686-pc-cygwin/include -idirafter /usr/include -idirafter >>/usr/local/i686-pc-cygwin/include/w32api -idirafter /usr/include/w32api >>nolink.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase >>nolink.cc -Wall -version -o >>/mnt/data/Profiles/scarff/LOCALS~1/Temp/ccSJf53h.s >>ignoring nonexistent directory "/usr/local/i686-pc-cygwin/include" >>ignoring nonexistent directory "/usr/local/i686-pc-cygwin/include/w32api" >>GNU CPP version 3.2.3 (cpplib) (80386, BSD syntax) >>GNU C++ version 3.2.3 (i686-pc-cygwin) >> compiled by GNU C version 3.2 20020927 (prerelease). >>#include "..." search starts here: >>#include <...> search starts here: >> /usr/local/include >> /usr/local/include/c++/3.2.3 >> /usr/local/include/c++/3.2.3/i686-pc-cygwin >> /usr/local/include/c++/3.2.3/backward >> /usr/local/lib/gcc-lib/i686-pc-cygwin/3.2.3/include >> /usr/include >> /usr/include/w32api >>End of search list. > > > > >>gcc 3.3.1-3 OK >>gcc-g++ 3.3.1-3 OK >>gcc-mingw 20030911-4 OK >>gcc-mingw-core 20031020-1 OK >>gcc-mingw-g++ 20031020-1 OK >>gdbm 1.8.3-7 OK > > > > > --END OF MESSAGE-- -- Dean -- 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/