This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ fortran shared object error
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Philip Cheng <cheng at pcigeomatics dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 17 Jul 2003 22:48:45 +0200
- Subject: Re: g++ fortran shared object error
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.LNX.4.44.0307171127140.29829-100000@inti.pcigeomatics.com>
Philip Cheng wrote:
g++ -shared -o test.so test.o
s_wsle 0x10 test.o
do_lio 0x30 test.o
e_wsle 0x38 test.o
These are routines from the Fortran run time library. Use the following
command line to link your program:
g++ -shared -o test.so test.o -lg2c
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)