Mixed C++ and Fortran Linking Issue
问题 I have done some searching online but I cannot find out how to compile a simple C++ and Fortran code from linux. I need to get complex with it, but I just need to know how to start with a simple example. My C++ code is this: #include <iostream> using namespace std; extern int Add( int *, int * ); extern int Multiply( int *, int * ); int main() { int a,b,c; cout << "Enter 2 values: "; cin >> a >> b; c = Add(&a,&b); cout << a << " + " << b << " = " << c << endl; c = Multiply(&a,&b); cout << a <