h***o 发帖数: 539 | 1 都编译成*.obj文件(UNIX下面是*.o文件),然后link一下?
没试过,wild guess la | t****n 发帖数: 56 | 2 调用协议有关系,都是C协议?!
还有,在FORTRAN里应该有类似extern的声明,在编译以后,
才不会出错,然后顺利连接。我干过C和汇编,以及,PASCAL和汇编,还有
C和C++的,一般而言,要做好两点:
源文件需要extern声明外部例程,
还有,调用协议要一致,要么C要么PASCAL。
【在 h***o 的大作中提到】 : 都编译成*.obj文件(UNIX下面是*.o文件),然后link一下? : 没试过,wild guess la
| p**h 发帖数: 99 | 3 I am not 有经验.
I am learning fortran programming, 4 ur problem, i recommend you find this book:
unix for fortran programming.
it contains a chapter for programs mixing c and fortran.
below is some from this book:
When a C routine calls a fortran procedure, it must:
* convert the procedure's name to lowercasae (unless the fortran code was
compiled with the -U option, in which case the capitalization in C and fortran
must match).
* append an _ to the fortran procedure's name.
* pass all arg |
|