Article View: gnu.gcc.help
Article #573Re: Gcc 2.3.1 and collect2 library paths
From: Tom McConnell~
Date: Thu, 05 Nov 1992 19:56
Date: Thu, 05 Nov 1992 19:56
45 lines
1920 bytes
1920 bytes
In article <1d702iINNcg4@darkstar.UCSC.EDU>, paul@aztec.ucsc.edu (Paul Tatarsky) writes:
> With gcc2.2.2 using g++ one did not have to tell g++
> where libg++ was. Under gcc2.3.1 which I just installed
> it appears that g++ wants you to tell it where libg++ is
> with a -L. Is this true or did I screw up the install.
>
<stuff deleted>
>
> Paul Tatarsky email: paul@cse.ucsc.edu
> UC Santa Cruz
> CIS/CE Board
> Technical Staff
I have found the same problem for an RS/6000, AIX-3.1.6. I patched g++ and c++
as a work around, but from glancing at gcc.c, it looks like something is broken
in the add_prefix() function, used at line 3296.
The simple (yet brain dead :) fix is to hard code the library in g++ and c++,
like this:
*** ./c++_orig Thu Nov 5 07:02:18 1992
--- ./c++ Thu Nov 5 07:02:45 1992
***************
*** 25,29 ****
quote=
# $library is made empty to disable use of libg++.
! library=-lg++
numargs=$#
--- 25,29 ----
quote=
# $library is made empty to disable use of libg++.
! library="-L/stor/gnu/aix/lib -lg++"
numargs=$#
Cheers,
Tom McConnell
--
Tom McConnell | Internet: tmcconne@sedona.intel.com
Intel, Corp. C3-91 | Phone: (602)-554-8229
5000 W. Chandler Blvd. | The opinions expressed are my own. No one in
Chandler, AZ 85226 | their right mind would claim them.
Technical Details
Message-ID:
<1992Nov5.195617.1184@ichips.intel.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!eff!iWarp.intel.com|ichips!tmcconneReferences:
<1d702iINNcg4@darkstar.UCSC.EDU>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!eff!iWarp.intel.com|ichips!tmcconne From: tmcconne@sedona.intel.com (Tom McConnell~) Subject: Re: Gcc 2.3.1 and collect2 library paths Message-ID: <1992Nov5.195617.1184@ichips.intel.com> Originator: tmcconne@sedona Sender: tmcconne@sedona (Tom McConnell~) Organization: Intel Corporation References: <1d702iINNcg4@darkstar.UCSC.EDU> Date: Thu, 5 Nov 1992 19:56:17 GMT Lines: 45