The symbol _FWF is defined in the dynamic library libfortran.so (it
takes place in /usr/lib32 and /usr/lib64).
It means that you have to add -lfortran at your link.
I hope this help.
Nathalie
Dennis wrote:
>
> Hi,
>
> Could anyone point out where the mistake is? I was trying to use a c++
> program to call a Fortran 90 function. The programs are compiled by CC and
> f90 on SGI IRIX workstations.
>
> The C++ main function is,
> ==================
> extern "C" {
> #define test test_
> void test(void);
> }
> void main(int argc, char **argv)
> {
> test();
> }
>
> The Fortran 90 code is,
> =========================
> SUBROUTINE test()
> IMPLICIT NONE
> write(*,*)"test mixed programing"
> END SUBROUTINE test
> =========================
>
> And I got some error messages, one of them is
> ==========================
> ld32: ERROR 33: Unresolved test symbol "_FWF" -- 1st referenced by test.o
> ........
> ============================
> I don't know what "_FWF" means. Any help is greatly appreciated.
>
> Thanks in advance.
>
> Dennis
--
________________________________________________________
Nathalie LE HIR - RENAULT - DOII/DITS - SCE 12210
1, avenue du Golf - 78288 GUYANCOURT CEDEX
API : TCR AST 0 10
Tel. : 01 34 95 47 65 - Fax : 01 34 95 36 30
mailto:[log in to unmask]
http://www-dits4.ctr.renault.fr/sii12210/uet_calcul
________________________________________________________
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|