Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Error in CVF vc-example1

lbrannma
Beginner
1,027 Views
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
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,027 Views
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
0 Kudos
lbrannma
Beginner
1,027 Views
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
0 Kudos
Steven_L_Intel1
Employee
1,027 Views
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
0 Kudos
lbrannma
Beginner
1,027 Views
Thanks Steve. That worked. I appreciate your prompt and accurate assistance...

Lance
0 Kudos
Reply