Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran module wizard error

jvandeven
New Contributor I
2,698 Views

For some years I have used the Intel Fortran module wizard to generate the COM code necessary for communicating with Excel.  Recently I upgraded to VS2013, with the Intel Fortran compiler 15.0.0.108.  This upgrade appears to have introduced a conflict with my existing COM code.  I have tried generating new code using the Fortran module wizard, but now receive a range of error messages when I try to compile.  I am doing the following:

1) Selecting the Microsoft Excel 15.0 Object library from the COM components

2) I leave the "Generate code that uses Automation interfaces" unchecked (for efficiency)

3) Select the _Application, _Workbook, and _Worksheet members

4) I leave the "Generate DLLEXPORT statements" unchecked (I use this module internally)

5) press the finish button.

Code is then generated.  When I try to compile, I receive the following error messages:

Error    1     error #6401: The attributes of this name conflict with those made accessible by a USE statement.   [WORD]    C:\MyFiles\MODEL_LAB\FORTRAN\EXCEL\EXCEL.f90    534    
Error    2     error #6445: A dummy argument is required in this context.   [WORD]    C:\MyFiles\MODEL_LAB\FORTRAN\EXCEL\EXCEL.f90    534    
Error    3     error #6445: A dummy argument is required in this context.   [WORD]    C:\MyFiles\MODEL_LAB\FORTRAN\EXCEL\EXCEL.f90    535    
Error    4     error #6717: This name has not been given an explicit type.   [WORD]    C:\MyFiles\MODEL_LAB\FORTRAN\EXCEL\EXCEL.f90    530    
Error    5     error #6075: The data type of the actual argument does not match the definition.   [$BSTR_WORD]    C:\MyFiles\MODEL_LAB\FORTRAN\EXCEL\EXCEL.f90    11255    
Error    6    Compilation Aborted (code 1)    C:\MyFiles\MODEL_LAB\FORTRAN\EXCEL\EXCEL.f90    1    

I attach the F90 file that is generated by the wizard for information.  Any help resolving this issue is greatly appreciated.

Justin

 

 

(Virus scan in progress ...)
0 Kudos
21 Replies
Steven_L_Intel1
Employee
286 Views

It is still reproducible - still investigating.

0 Kudos
Reply