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

Error while building exeramsess(IFORT)

Abbas2
Beginner
467 Views

Hello,

 

Abbas2_0-1742336526742.png

 



When I am trying to build exeramsess, errors pop up such as "error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELING]" ..... The problem Visual studio isnt being able to fetch the modules(.mod files) which are in the same directory. What should I do?

Labels (1)
0 Kudos
7 Replies
Steve_Lionel
Honored Contributor III
460 Views

Were the .mod files compiled by the same compiler you're using to build the application? Your screenshot doesn't show anything helpful in diagnosing the problem. (The buildlog.htm would give a clue - zip it and attach to a reply here.)

0 Kudos
Abbas2
Beginner
395 Views

Hi Steve,

So the problem is my compiler is not knowing where to fetch the .mod files . (We tried the same project on another laptop it worked fine). 

Abbas2_0-1742376432752.png

I open Uramses.sln then rebuild the exeramses as shown in the first image.

Abbas2_1-1742377229142.png

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
380 Views

jimdempseyatthecove_0-1742385733927.png

Where is the file modeling.mod?

In the solution folder, for the project that builds the application, have you set the Additional Include Directories to something like this:

jimdempseyatthecove_1-1742385947241.png

** Note, in your case, the Configuration should be Debug.

Jim Dempsey

0 Kudos
Abbas2
Beginner
375 Views

All the modules are in modules file, I did as you told me by including them in additional directory. However, several errors popped up.

Abbas2_0-1742387366506.png

But errors related to include path disappeared.

0 Kudos
jimdempseyatthecove
Honored Contributor III
335 Views

When a module is built, it produces two files:

YourModuleNameHere.mod

YourModuleNameHere.obj

 

The .mod files are analogous to a .h file

And the .obj file (when generated), contains the static data and/or contained code.

 

On your system that works, look for the .obj files and include them in your build

*** Typically, when the modules are NOT built in the solution, one builds the module files in a library project (either static or .dll).

*** This produces one or more .mod files and a .lib file (or .dll with export library .lib).

 

The error messages indicate that the .lib (or .obj) files are not linked into your application.

 

Jim Dempsey

0 Kudos
Abbas2
Beginner
324 Views

For example, downloading the newest version from github "https://github.com/SPS-L/URAMSES" and following the steps by including my file. I then add the directory to tell my compiler from where it can fetch the modules. Inside the modules folder, there is an libramses.lib is that what are you talking about or these in the debug folder (if these I also included them in the additional directory and still getting the same error?

Abbas2_0-1742399238605.png

 

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
316 Views

>>  there is an libramses.lib is that what are you talking about

yes

 

From part of your screenshot:

...

jimdempseyatthecove_0-1742402925355.png

...

It would appear that the library holding the output for "OBSERV_MOD" was not loaded.

And the .DLL import library for the module "BRANCH" was not loaded.

 

Jim Dempsey

0 Kudos
Reply