- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have built a project that consists of a source file and some object files that contain modules that the main source uses. This works well when the build is "Debug", but fails when the build is "Release". The message is, among many, Error: Error in opening the compiled module file. Check INCLUDE paths. [MY_PRECISION].
What is the preferred way to include modules as dependencies? I have a few modules that are used by many programs. Should the modules be put into a library or?
Thanks.
SAE
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What I usually do is create a static library project for shared modules. The .lib from that project can be linked to by the others but I also have to add the path to the .mod files (same place .obj files are put) to the include path list. You cannot put .mod files in any kind of library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, thanks for the answer, but I still can't make it work. By the way, now I can't make it work in Debug either. When I compile from the command line it works. My problem is like this: I have several source files that each contains one module. These I have made into one static library. The library is D:F90LIBMY_MODS.LIB
All the *.mod files generated from the build are located in D:F90MODULES.I copied the library and *.mod files into the above mentioned locations.
The main source using these modules is located in D:F90PGMT_LINE.F90 and the console project is located at D:IVF_PROJECTSTRANSMISSIONLINE. I have pointed to the above directories through Tools / Options / Fortran / General / Compiler selection / Libraries and Includes. In addition I have in Project / Transmissionline Properties / Fortran / Output filesset $(IntDir);D:F90MODULES;D:F90LIB.
Help!!!
SAE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page