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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|