- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Steve

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