Is it possible to establish a link between a project with .exe(built using GCC) and another .dll ( built using VC)?
The desired compile and build environment to link the two is GCC.
If no , what is the reason.And if yes, how to link?
Is it possible to establish a link between a project with .exe(built using GCC) and another .dll ( built using VC)?
The desired compile and build environment to link the two is GCC.
If no , what is the reason.And if yes, how to link?
Maybe, it really depends a lot on the specifics. I am assuming the EXE is a Qt project.
Is the DLL a COM/ActiveX object? If so, use ActiveQt.
Is the DLL pure C functions or is it C++? If the former then you will probably have better luck.
MingW mixing compilers
Do you have to register the DLL to use it? Com/ActiveX DLLs have a bunch of related registry entries that are created by registration. Try it if you don't know:Non-COM DLLs will generate an error message.Qt Code:
C:\Windows\system32> regsvr32 example.dllTo copy to clipboard, switch view to plain text mode
The binary interface of C++ code differs between GCC and MSVC++ so if the DLL is straight C++ you are probably out of luck.
Bookmarks