g++ fortran shared object error

Toon Moene toon@moene.indiv.nluug.nl
Thu Jul 17 20:55:00 GMT 2003


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)



More information about the Gcc-help mailing list