I would like to build a MSVC compatible DLL according to the docs on
mingw.org. A simple example from the site builds fine. Now I would like to
link also a C++ class library which is static. It has been build with the
My .cpp (mydll.cpp) file uses the classes from the static library as base
classes. It compiles fine using the provided headers of the static lib.
I tried to add this library as additional object file (here proky.lib),=20
the base classes are still reported as undefined. My call:
g++ -shared -o mydll.dll -Wl,--output-def,mydll.def,--out-implib,libmy
dll.a mydll.o proky.lib
Thanks in advance for any clues!
> Now I would like to
> link also a C++ class library which is static. It has been build with the
> developer studio.
You can't link C++ classes across compilers.
Google for "ABI" and "C++" to find out why (or check out the
MinGWike where it is explained -- I think...).
Searching the archives of this list will give you lots and
lots of posts asking this very question and also an even greater
number of posts explaining why it is not possible.
Vote against SPAM - see http://www.politik-digital.de/spam/
Michael Gerdau email: mgd@...
GPG-keys available on request or at public keyserver