Hi All,
I'm learning how to create a Fortran DLL that's callable from C. I use the example at www.compaq.com/fortran/examples/vc-example1.html
The example won't compile. There's an error in the following line:
WRITE(INT_STR,'(15.5)')INT_ARG
The error is:
Error. A dot [.] is invalid in a format list in this context.
Any advice will be very much appreciated.
Thanks,
Lance
I'm learning how to create a Fortran DLL that's callable from C. I use the example at www.compaq.com/fortran/examples/vc-example1.html
The example won't compile. There's an error in the following line:
WRITE(INT_STR,'(15.5)')INT_ARG
The error is:
Error. A dot [.] is invalid in a format list in this context.
Any advice will be very much appreciated.
Thanks,
Lance
連結已複製
4 回應
Thanks Steve,
I tried your correction. I also tried '(A)'. The project builds. However, when I attempt to run the executable, I receive:
The dynamic link library DFORRTD.DLL could not be found in the specified path.
Any suggestions?
Thanks,
Lance
I tried your correction. I also tried '(A)'. The project builds. However, when I attempt to run the executable, I receive:
The dynamic link library DFORRTD.DLL could not be found in the specified path.
Any suggestions?
Thanks,
Lance
I'll bet you're running the DLL on a system that doesn't have CVF installed. Build the DLL in a "release configuration", and install the CVF run-time redistributables package on the other system. (If you don't build a release configuration, you'll get the same error, as the debug RTLs are not redistributable.)
Steve
Steve
