Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

#import does not work after compiler update

$
0
0

Hello,

after update of Intel C++ compiler and Visual Studio, the #import statement does not work anymore and causes INTERNAL COMPILER ERROR.

Repro:

C++ Console Application Project with:

// ImportCOM.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#import "LicProtector500.dll"

int main()
{
    return 0;
}

produces as output:

1>------ Rebuild All started: Project: ImportCOM, Configuration: Debug Win32 ------
1>stdafx.cpp
1>ImportCOM.cpp
1>59242.cpp
1>c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.15.26726\include\comdef.h: : error C1001: An internal error has occurred in the compiler.
1>(compiler file 'msc1.cpp', line 1518)
1>Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX64\x86\cl.exe.  You will be prompted to send an error report to Microsoft later.
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1>Please choose the Technical Support command on the Visual C++
1>INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\HostX64\x86\cl.exe'
1> Help menu, or open the Technical Support help file for more information
1>    Please choose the Technical Support command on the Visual C++
1>    Help menu, or open the Technical Support help file for more information
1>Done building project "ImportCOM.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Error on VC 15.8.8 & Intel C++ 2018.5.274

Under VC 15.7.6 & Intel C++ 2018.3.210 works fine.

AttachmentSize
Downloadapplication/zipImportCOM.zip3.22 MB

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>