Intel compiler (windows) C ++ and changing its library implementation in gcc. Is it possible?

Not sure if this is the right place, but here goes

The page on the Intel website says:

The Intel C ++ Compiler for Windows uses Microsoft Visual C ++ header files, libraries, and the linker . Microsoft manages the header files that define the namespace. Contact Microsoft Technical Support for Microsoft compliance with the C ++ standard on this issue ... link

Is there a guide from Intel (or otherwise) to change the libraries from those managed by the visual studio to those provided by gcc (also on my Windows computer), the reason I want to do this is to use some of the new ones C ++ 11 features that are not supported in visual studio versions (as is usually the case)

If this is not possible, because my current knowledge of the above is incorrect, can someone explain to me why not.

Thanks.

+4
source share
1 answer

This is not a practical opportunity.

The intelligent compiler (icl) will do nothing but moan if it cannot find the VC ++ binaries in PATH , so you know that it needs the VC ++ toolchain at least.

Then, to understand what you are facing with respect to gcc headers, you should do the following:

  • Make icl suppress your own predefined macros.
  • Use predefined gcc macros.
  • Make him crush his standard, including search.
  • Use gcc standard includes search.

Nothing complicated, and when you did all this and tried to build your HelloWorld.cpp , the errors will show you that the gcc headers abound with the built-in gcc compiler keywords that are unknown icl: __builtin_va_list , __attribute__ , __cdecl__ , __nothrow__ , etc.

You can try to successfully delete or redefine all of this using preprocessor macros. Or you can refuse, and I would highly recommend the latter.

0
source

All Articles