How do I create a static and dynamic library for Windows using G ++?
I have received some commands for Linux to create the I have been able to create The prefix is required: the features you want to show. See. Example for C Function: This can be simplified using For C ++ classes, you do not need to apply only each class (not every single method) I usually do this: Note: also ensures portability ... Include file: Usage: Then, for build , simply: .so files, and I have tried to apply them to the Windows shell, but they have
.dll < / Code> Files that fail to link to my application runtime
.dll files using only visible code ++, but I can command them I want to manually create a line, preferably
g ++ . I would also like to know how to prepare static libraries for Windows
__ declspec (dllexport) ...
__Decspeak (dlxport) Add int __cdecl (int a, int b) {return (a + b); }
macros : everything is explained on this.
For the export of version
#include "my_macros.h" class LIB_CLASS MyClass { }
-DBUILD_LIB Optional Compiler Command Line
-shared option for the General Linker Command Line option
No comments:
Post a Comment