Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. monkeycode

    reading c variables in fortran

    altering the call from Fortran caused a crash (but I do feel I have been educated so thanks for that anyway, always good to be learning!!) I think because I'm using PS4, so it should have been !M$ATTRIBUTES as xwb suggests but anyway, I went back and tried putting the pointers in the C code...
  2. monkeycode

    reading c variables in fortran

    I'm editing a model written in C and fortran- I've worked out how to use fortran variables in C, but not the reverse- any advice on what I'm doing wrong, or links to info on how to do this greatly appreciated- I don't even know the basics, like should I be using pointers (it seems to fall over...
  3. monkeycode

    call C from fortran in powerstation v4 required libraries?

    I suspect missing bits of library files may be causing my _getstdfilesx error I do have // Std handle defns #define stdin _getstdfilex(0) #define stdout _getstdfilex(1) #define stderr _getstdfilex(2) // functions for general buffered file handling in either ANSI or Wide _CRTIMP FILE*...
  4. monkeycode

    call C from fortran in powerstation v4 required libraries?

    also fixed max and min, although, I am still working on the getstdfilex part of the error.....
  5. monkeycode

    call C from fortran in powerstation v4 required libraries?

    fixed by adding void perror(const char *message); to code- my stdio.h file is empty!
  6. monkeycode

    call C from fortran in powerstation v4 required libraries?

    Thanks salgerman, xwb; I am trying to call C from fortran, in a DLL I have managed to fix the unresolved external symbol errors for the c references (I had not told the compiler to link to the correct files, doh!) but am having problems now with some other unresolved externals __getstdfilex...
  7. monkeycode

    call C from fortran in powerstation v4 required libraries?

    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...

Part and Inventory Search

Back
Top