Hello everybody,
I am trying to create a DLL by using a .DEF file and targeting the
MinGW gcc-compiler. In my CMakeLists.txt I have this:
add_library(MyDll SHARED
MyDll.cpp
dllmain.cpp
stdafx.cpp
MyDll.def).
I have the following
Hi,
just a wild guess: .def files for C++ projects have to list the mangled
names, so if you want the export name to be just testfunc, it should be
declared as 'extern C'.
Petr
On Thu, Sep 13, 2012 at 8:17 AM, Ali Hamdi alh...@gmail.com wrote:
Hello everybody,
I am trying to create a DLL by
That was it, it worked. Thank you!
/Ali
On Thu, Sep 13, 2012 at 8:48 AM, Petr Kmoch petr.km...@gmail.com wrote:
Hi,
just a wild guess: .def files for C++ projects have to list the mangled
names, so if you want the export name to be just testfunc, it should be
declared as 'extern C'.
Petr