How can I compile a C code with code calls in FORTRAN in HPC320? |
![](components/com_simplefaq/images/up.png) | At the moment of linking with f90 (or f77), we must indicate the option “-nofor_main”. If we do not do it, we will get the following error: ld: /usr/lib/cmplrs/fort90/for_main.o: main: multiply defined Unresolved: MAIN__ f90: Severe: Failed while trying to link.
No HPC320, ¿como podo compilar un codigo C con chamadas a codigo en FORTRAN?
No momento de linkar con f90 (ou f77), debemos indicar a opcion "-nofor_main". Se non o facemos, obteremos o seguinte erro: ld: /usr/lib/cmplrs/fort90/for_main.o: main: multiply defined Unresolved: MAIN__ f90: Severe: Failed while trying to link. |