- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You mis-typed the FORMAT - that's I5.5, not 15.5. I recognize that it's a bit hard to tell the difference on the web page.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve. That worked. I appreciate your prompt and accurate assistance...
Lance
Lance

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page