D
Dennis Kernighan
On Microsoft's pages there is an example of making Fortran call from
C++, see http://tinyurl.com/2692f . If I put C code in the test.c and
Fortran code in FORSUBS.FOR and press F5 in C++, I get following
errors:
------- error statement --------
fortrantester error LNK2019: unresolved external symbol "void
__stdcall
PYTHAGORAS(float,float,float *)" (?PYTHAGORAS@@YGXMMPAM@Z) referenced
in
function _main
fortrantester error LNK2019: unresolved external symbol "int __stdcall
FACT(int)" (?FACT@@YGHH@Z) referenced in function _main
fortrantester fatal error LNK1120: 2 unresolved externals
------- error statement --------
So. Is the problem that Fortran compiler is missing? Where could I get
one and how will I tell to C++ that it should use it?
DK
C++, see http://tinyurl.com/2692f . If I put C code in the test.c and
Fortran code in FORSUBS.FOR and press F5 in C++, I get following
errors:
------- error statement --------
fortrantester error LNK2019: unresolved external symbol "void
__stdcall
PYTHAGORAS(float,float,float *)" (?PYTHAGORAS@@YGXMMPAM@Z) referenced
in
function _main
fortrantester error LNK2019: unresolved external symbol "int __stdcall
FACT(int)" (?FACT@@YGHH@Z) referenced in function _main
fortrantester fatal error LNK1120: 2 unresolved externals
------- error statement --------
So. Is the problem that Fortran compiler is missing? Where could I get
one and how will I tell to C++ that it should use it?
DK