This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [Fwd: Linking Problems with gcc-3.3]


On Thursday 22 January 2004 11:04 am, Wolfgang Köhler wrote:
> Paul,
>
> many thanks for your immediate answer.
>
> You are right, its actually C++ code.
> It works now ok, however I linked with -lfrtbegin and -lg2c
> (-lgfortran was mot found), according to your help-page.
>
> I would suggest, however, to place a hint on the man-page of g77.
> In the eralier versions no extra libraries were needed for linking.

Ah, ok, you're using g77, not gfortran:)
This topic is covered in the full g77 info documentation.

I suspect you previous code may have been using g77 to link the program, and 
explicitly linking the c++ runtime libraries. I suggested the other way round 
as c++ tends to be fussier about how it is linked.

Paul


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