Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

linking g++ with intel c++ on windows

scsjason
Beginner
283 Views
Hi,
I'm stuck in the middle of someone else's mess and am trying to link
code compiled with g++ and DLLs compiled with MSVC++ through a cygwin
environment. This I have discovered isn't going to work as the name mangling
of g++ doesn't match the name mangling of MSVC++.

My next best option is to recompile the DLLs with possibly the intel c++ compiler,
does anyone know if this will get me anywhere further on than I am now ?
Is the name mangling of the intel compiler just set to match MSVC++ and so I
will just end up with the same problem I have now?

Or is it possible to compile the the DLLs so that they can be linked to from g++?

Has anyone ever tried this ?

Thanks for any advice . .

---
jason
0 Kudos
2 Replies
TimP
Honored Contributor III
283 Views
Intel C++ is documented as compatible with the MSVC version set by the /Qvc switch. The default value is set during installation, to match the Visual Studio you install under. MSVC compatibility includes the name mangling scheme. You can set the /Qvc switch yourself, to make objects to link with a different MSVC version.
It won't be possible to match the g++ name mangling scheme on Windows with Intel C++.

0 Kudos
scsjason
Beginner
283 Views
OK, thanks for your help.
0 Kudos
Reply