How to compile using EiffelStudio? VD43 Precompiled file is missing or unreadable (...)/driver.exe - External C compilation failed

136 views Asked by At

After installing EiffelStudio I can't compile and run any project because I always get VD43 warning and C Compiler Error.

2   VD43    Precompiled file is missing or unreadable. File 'c:\users\username\documents\eiffel user files\19.05\precomp\spec\win64\EIFGENs\base-scoop-safe\W_code\msc_vc140\driver.exe'.   

        
1   C Compiler Error    Please review the External Compilation output of the Outputs Tool.              
    Error code: C Compiler Error

Error: External C/C++ compilation failed.
What to do: Check the external C/C++ compilation for details.

Please review the External Compilation output of the Outputs Tool.  

        

I found this page: https://www.eiffel.org/doc/version/trunk/faq/FAQ. The key ISE_C_COMPILER must be additionally defined in order for EiffelStudio to work at all. But how does one "Tell EiffelStudio to use Visual Studio 2017-compatible libraries"? I tried setting it as an environment variable, and changing the compile_library.bat and esvars.bat, so that in every place it's set ISE_C_COMPILER=msc_vc140. I also added variable ISE_C_COMPILER - msc_vc140 on the EiffelStudio GUI, under Project->Project Settings->Target:project->Advanced->Variables

I deleted all the projects and the precomp folder. I ran espawn -l just to verify that I have the good c++ compiler:

Available C/C++ compilers:

   VC160:  Microsoft Visual Studio 2019 VC++ (19.0)
   VC150:  Microsoft Visual Studio 2017 VC++ (15.0)

To me it seems that I installed everything and I set every variable but it still gives me the same warning and error.

0

There are 0 answers