Microsoft Developer Studio Fortran Powerstation Download

On

I am trying a test build of some old code (hence the old compiler). I need to link C and F files, but I am getting the following error

error LNK2001: unresolved external symbol _flow

for each mention of a C file in the F code. Below is an example of how the f files link to the C files.

I am struggling to find any suggestions for the compiler I am using, but I suspect that the code is OK (I am assured the model has built from this code previously) and there is something wrong with what I am doing- I am wondering if I don't have the appropriate libraries to tell the compiler I am trying to link to C? I did attempt to download fortran.h and add this to my project file but this did not help, and when I added

to the relevant f files it caused syntax errors.

here is also the fortran.h file I am using

// Definitions for calling FORTRAN 77 from C++

Thanks for reading- help greatly appreciated, and let me know if more information would be useful! Miracle box coolsand.

Amy Rose ThehedgehogAmy Rose Thehedgehog

Browse other questions tagged c++cinterfacelinkerfortran or ask your own question.