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

Building Error in opening f90SQL module files

tom_c_lin
Beginner
706 Views

Good Morning Friends. I recently installed VS2005 (Professional) and am trying to move all my codes from VS2003 .netto the new IDE. For those programs which callsubroutines in f90SQL library (lite version), there are errors in opening the f90SQL library module files when I tried to build them. It seems to me that the compiler found the library but can't find the modules in the library. Does anybody know why? I have put f90SQL.lib in the 'Additional Dependencies' (in Linker : Input) just like what I did in VS2003. Any comments or suggestions? Thanks in advance. Good Day.

Tom Lin

0 Kudos
4 Replies
Steven_L_Intel1
Employee
706 Views
What exactly are the errors? Modules do not go in a library - they are .mod files that are found in one of the places the compiler looks for INCLUDE files. Do not be confused by the compiler's reference to "library module file" - that message is changing in a future version. Modules have nothing to do with libraries.
0 Kudos
tom_c_lin
Beginner
706 Views

Thanks Steve for the prompt reply. The following areexamples of twoerrors (The Error Lines are exactly the same as shown on screen):

1.Fortran Source=> use f90SQLConstants

Error line=> Error: Error in opening the Library module file. [F90SQLCONSTANTS]

2. Fortran Source=>integer(SQLHENV_KIND):: EnvHndl

Error line=> Error: A kind type parameter must be a compile-time constant. [SQLINTEGER_KIND]

The problem I think is inthe 'use' lines such as 'use f90SQLConstants'. All FORTRANcodes start with 'use' and then f90SQL module name have the same error message. Thank you for your time. Good Day.

Tom Lin

0 Kudos
Steven_L_Intel1
Employee
706 Views
You do not have the folder containing the F90SQL .mod files in the INCLUDE path. You can specify this for a specific project in the Fortran "Preprocessor" property page, or globally at Tools..Options..Intel Fortran..General..Include Files.
0 Kudos
tom_c_lin
Beginner
706 Views

Thank you very much Steve. It works now.

Tom Lin

0 Kudos
Reply