RE: Linking fortran with C libs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

Ignore my earlier mail. Since I was porting this software, I was not aware that there was a macro converting Fortran calls to equivalent C function names. Upon using the macros and also using -fno-second-underscore, I was able to successfully get past the issue.

With Regards

Vardhan

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx]On
Behalf Of Vardhan, Sundara (GE Infra, Energy)
Sent: Tuesday, July 22, 2008 3:24 PM
To: gcc-help@xxxxxxxxxxx
Subject: Linking fortran with C libs


Hi All

I installed gcc 4.2.3 with gfortran on AIX 5.3. Compiled and created a shared object with programs written in C. Compiled fortran code with gfortran and tried to link with the earlier created shared object.  I get the following error

undefined reference to `.rtregister_'

where rt_register is the 'C' function call that is required. 

The same set of programs worked fine on a Linux box with g77. Am I missing anything? Your help will be greatly appreciated.

With Regards

Vardhan


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux