This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking Fortran
- From: bjorn rohde jensen <shamus at tdcadsl dot dk>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 26 Apr 2002 23:15:02 +0200
- Subject: Re: Linking Fortran
- References: <02042412394800.01398@localhost.localdomain>
- Reply-to: shamus at tdcadsl dot dk
Hi Olivier,
I would say, that you have to be very careful with linking
object files generated by different compilers. There are
differences in the handling of data types and parameter passing
for functions and such. I seem to recall something about a
C linkage standard, but that is about it. I think, you should
be able to link object files from two C compilers. I mean, the
system libraries go with the system and not the compiler.
Different C++ compilers usually name mangle differently, C and
Fortran handle char strings differently and so forth...
Yours sincerely,
Bjorn
Olivier Bounhoure wrote:
>
> Hello everybody here,
> I would like to know if there is somthing wrong with linking libraries and
> object files compiled with different compilers.
> Thanks in advance,
> Olivier