Software Archive
Read-only legacy content
17061 Discussions

Runing NAG library under CVF 6.6

zhiyang
Beginner
476 Views
Hi, I just begin to use NAG fortran library (Fnw3203dd). And I try to ran it under CVF 6.6, but it seems not working.

I link the lib file into my workplace through project/add to project/files/...
then I try to ran the following very simple sample program from NAG

PROGRAM tutorial_ex1a
USE nag_lib_support, ONLY : nag_lib_ident
IMPLICIT NONE
CALL nag_lib_ident
END PROGRAM tutorial_ex1a

then when I try to build it, I got the following error messages:

--------------------Configuration: test - Win32 Debug--------------------
Compiling Fortran...
C:zhiyangj est estText1.f90
C:zhiyangj est estText1.f90(2) : Error: Error in opening the Library module file. [NAG_LIB_SUPPORT]
USE nag_lib_support, ONLY : nag_lib_ident
--------------^
C:zhiyangj est estText1.f90(4) : Error: Conflicting attributes or multiple declaration of name. [NAG_LIB_IDENT]
CALL nag_lib_ident
---------------^
C:zhiyangj est estText1.f90(2) : Error: Name in only-list does not exist. [NAG_LIB_IDENT]
USE nag_lib_support, ONLY : nag_lib_ident
--------------------------------------^
Error executing df.exe.

test.exe - 3 error(s), 0 warning(s)

it looks like that complier didn't find the library file, why is that?

thank a lot for your help.

zhiyang
0 Kudos
1 Reply
Steven_L_Intel1
Employee
476 Views
The problem is that the compiler can't find nag_lib_support.mod You can't just add it to the project - select Tools..Options..Directories..Show directories for..Include files, and add the path to the NAG modules to the list.

Steve
0 Kudos
Reply