Add a FORTRAN object to wmake compilation directives
I'm having problems to call a simple Fortran function from my solver.
I tested the fortran function from a simple C++ main file and it works. To be able to compile and link this simple example, I simply did:
(I've tried this thread http://www.cfd-online.com/Forums/ope...penfoam-2.html, but nothing)
After manually compiling the fortran file, I added to my solver Make/options file this:
When calling wmake I got the linking error below:
So, I'm sure my problem is how to set the wmake files in my project to tell the compiler and linker recognize the q.o object and link it to the solver executable.
(I didn't try to add the fortran code as an external lib. Since it's is simple I would like to have it inside the executable).
My I guess my question is: if it is possible, how to add to wmake both fortran code compilation and then link the object to the solver executable using wmake?
Well, I was doing something wrong and after trying again (and a stop for a briefing) I could correctly link the fortran object as described in the thread I mentioned.
After feeling dumb for replying to myself, I think the first part of the question still holds: how to tell to wmake to compile code in Fortran?
I'm checking the scripts in $(WM_PROJECT_DIR)/wmake but nothing yet...
Thank you and sorry for the self-reply.
|All times are GMT -4. The time now is 20:24.|