Page 1 of 1

Using Watcom to link C++ and FORTRAN

Posted: Wed Aug 28, 2013 8:40 am
by Blurr
I have wasted too much time messing around with this so I hope someone here can help.

I'm working with some old FORTRAN IV (66) code and although I have it working and compiling properly using the WFC386 compiler, I want to modify the code to call it from a C++ program. However, all attempts to use wfc386, wpp386 and wlink to make it happen have been futile.

Does anyone know where I can find information on this of if this is even possible with Watcom? I've done it with g++ and gfortran, but that FORTRAN compiler will not compile this old FORTRAN code properly so I'm stuck with WFC386.

Thanks a lot,
Chris