I’ve recently been learning Precomp(v1.00.04) and trying to compile it with IVF. However, I’m having some difficulties with the compilation process and I’m considering two possible errors:
1.Precomp(v1.00.04)'s folder contains only three files( ‘mods_precomp.f90’ , ‘PreComp.f’ and ‘SetProg.f90’),and is missing the necessary NWTC_library module. The oldest version I found from github is NWTC_library v1.05.00, but as mentioned in previous discussions(the links are as follows), compilation may require NWTC_library v1.04.01. I think this version is hard to find, is there anyone kind enough to provide resources on this module?
2.I’m not very familiar with the IVF compilation method. My approach is to compile the all files in one folder, The compilation process and prompted error messages are as follows:
1>Compiling with Intel(R) Visual Fortran Compiler XE 126.96.36.199 [Intel(R) 64]…
1>PreComp.obj : error LNK2019: external symbol that cannot be parsed PICONSTS, which is referenced in the function MAIN__.
1>x64\Debug\c.exe : fatal error LNK1120: 1 unresolved external command
So I’m not sure the compilation process is correct.
That’s the difficulties I’m having, and I’m hoping that someone kind will answer them.
Sorry, but I have no experience compiling PreComp and am not familiar with that error.
I’ve placed the older v1.04.01 of the NWTC Library here: drive.google.com/drive/folders/ … sp=sharing. Does using that solve the problem?
Thank you very much.After using the files in the link you provided, Precomp has compiled successfully.
The problem now is that when I run the exe file, it shows that several dll files are missing (libifcoremdd. dll, libifportMD.dll, libmmd.dll).
Maybe this problem is not related to Precomp’s code. I’ll try to debug it myself, and if I can’t solve it, I’ll come back for more advice!
Those DLLs are necessary because you built with dynamic libraries instead of static ones.
With dynamic libraries, you have a few options:
- To run the code on the machine you compiled with, open the Intel compiler environment command window (this will be on your start menu, under something like “Intel Parallel Studio” “Compiler for IA-32”), and run the code from that command window, or
- To run on any Windows machine, download and install the appropriate version of the Intel redistributable libraries here: software.intel.com/content/www/ … rsion.html
Otherwise, try to build with static libraries (under “project properties”, select “Configuration Properties”->“Fortran”->“Libraries”, “Runtime Library”, and choose “Multithreaded”). Then the executable won’t depend on those dlls.
Thank you for your patient and professional guidance. I think my problem should be solved now.