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++ link errors

At 11:14 PM 12/8/2003, Dean Scarff you wrote:
>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).

Cygwin packages don't install into /usr/local.  You must have had a 
non-standard package or local build.

>Problem solved, anyway.


>>>From: Dean Scarff
>>>Sent: Sunday, December 07, 2003 7:34 AM
>>>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
>>>#include <iostream>
>>>using namespace std;
>>>main(int, char**)
>>>  cout << "hello.";
>>>scarff-box ~ $ g++ -Wall -v
>>>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__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_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
>>> -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase
>>> -Wall -version -o
>>>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
>Unsubscribe info:
>Problem reports:

Unsubscribe info:
Problem reports:

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