- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did a cvf project and within it I wrote a module which can be used by other projects. I assumed that if I put its MOD (and to be safe its f90) file(s) in the DF98INCLUDE I can gain access to it in another project by simply putting in a USE stmt. However, while the new project compiled and the MOD appears in the "external dependencies" list, there are unresolved externals errors during the LINK stage. The link errors explicitly refer to the routines in the MOD file mentioned.
Why does it not recognize the contents of the MODule??
Is it because it was compiled as part of another project? or...
thanks, Tim H
Why does it not recognize the contents of the MODule??
Is it because it was compiled as part of another project? or...
thanks, Tim H
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must also add to the project the .LIB or .OBJ files from the project that defines the modules. The easiest way to do this is to make the module project a "static library" project type and then to make that project a dependent of your main project. The library will then automatically be linked in - you still need to modify the INCLUDE path, however.
The .MOD has the declaration of the routines and variables - the actual code and storage is in the .OBJ/.LIB.
Steve
The .MOD has the declaration of the routines and variables - the actual code and storage is in the .OBJ/.LIB.
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