I have created a library libsofa.a from numerous *.o files which were compiled from *.f (Fortran) files using GCC 4.1.
I would like to use the functions provided by this library in my C++ program.
Please tell me how I am to do it. Thank you.
I have created a library libsofa.a from numerous *.o files which were compiled from *.f (Fortran) files using GCC 4.1.
I would like to use the functions provided by this library in my C++ program.
Please tell me how I am to do it. Thank you.
Just link your program with the library, qmake can help, use LIBS. Does this help?
jamadagni (19th March 2006)
Yep, but if I need to pass the fortran function variables, arrays etc, can I use and pass C variables and they will be properly recognized?Originally Posted by dimitri
Bookmarks