Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - C++ Dll exports
I have a working makefile to make a .lib from a bunch of C++ sources. I try to make the same but in DLL, with the IDDE. I can make the DLL, but the import lib is ~empty. When I do a DLL for C from C files (not C++) I have to manualy make the EXPORTS section of the .def file. ( EXPORTS _funct = func ...) This does not work as easily for the C++ (adorned with stuff) Question : How can I make my .def file, and finally a working import lib? This is for the FOX GUI library. Jean-Pierre Apr 23 2003
Try using __declspec(dllexport) on the declarations you want to have exported. "Jean-Pierre H. Dumas" <jeanpierre.dumas freesbee.fr> wrote in message news:1103_1051127866 news.digitalmars.com...I have a working makefile to make a .lib from a bunch of C++ sources. I try to make the same but in DLL, with the IDDE. I can make the DLL, but the import lib is ~empty. When I do a DLL for C from C files (not C++) I have to manualy make the EXPORTS section of the .def file. ( EXPORTS _funct = func ...) This does not work as easily for the C++ (adorned with stuff) Question : How can I make my .def file, and finally a working import lib? This is for the FOX GUI library. Jean-Pierre Apr 23 2003
|