|
请问lz编译出错还是运行报错?
获得Fortran数组p的地址这行没有看出语法错误啊~数组是连续分配内存的话,只要指针指向某个元素即可,是否数组越界那是另外一个检查
lz老师的用法没发现有问题,gofrtran的手册说得很明白:If a pointer is a dummy-argument of an interoperable procedure, it usually has to be declared using the VALUE attribute. void* matches TYPE(C_PTR), VALUE, while TYPE(C_PTR) alone matches void**. Name Type
C_NULL_PTR C_PTR
C_NULL_FUNPTR C_FUNPTR
Both are equivalent to the value NULL in C. |
|