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

Using class exported from third party VC++ DLL

Przemysław_O_
Beginner
208 Views

Hello,

is it safe to use a class exported from third party VC++ DLL?

I use Intel C++ with Visual Studio integration, so every C++ project is compiled with Intal C++ compiler.

I will use some 3rd party library, which comes without source code - only headers and builds for specific Microsoft VC++ compiler. This library contains classes which are exported with _declspec(dllexport). Is it safe to use those classes with Intel C++ compiler under Visual Studio? Of course the binary dll which I use was built with the same Version of VC++ which I use with Intel C++.

Sample code below:

#ifndef EXPORT_API
#  define EXT_API _declspec(dllimport)
# endif
#else
#  define EXT_API _declspec(dllexport)
# endif
#endif

class EXT_API SomeClassFromDll

{

...

0 Kudos
1 Reply
Light_Intel
Moderator
208 Views

Intel C++ Compiler is 100% compatible with VC. Thus whatever is safe to use with VC is also safe to use with the Intel Compiler.

0 Kudos
Reply