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

problem with use

cobek
Beginner
393 Views
Hello all, can anyone help me?

I have static library project (evrything is in the module) where:

module xxx

...
...
type MyType
integer int1
integer int2
end type MyType
...
...

end module

in the source file of another project I made reference to previous module and tried to define a variable but it does not work:

...
...
use xxx
...
...
type(MyType) myvar
...
...

A xxx.mod file is "visible" to project so I do not know what is wrong (if this is possible at all :-).

Thank for help in advance
0 Kudos
1 Reply
rahzan
Novice
393 Views
Both the MOD and the LIB files must be visible to the user.

Also the LIB file must be added to the project.

If the library is general purpose enough you may want to put them in the INCLUDE and the LIB folders of the DVF installation.

Tim
0 Kudos
Reply