Building DLL using Visual Studio 2015
As specified here, the library support generation of dynamic link libraries (dll).
This guide is the updated version, which will describe the needed steps to build using Visual Studio 2015.
- config_site.h modification
#define PJ_DLL 1 #ifdef _LIB # define PJ_EXPORTING 1 #endif
- Source code modification
Apply the patch attached. Note that the patch is against 2.7.1, and is considered to be committed and included in 2.8.
- Projects file modification
- Change project default (Configuration Properties > General > Configuration Type) to Dynamic Library (.dll). - Add the library input (Configuration Properties > Linker > Input) needed by the library. e.g: pjlib needs ws2_32.lib - Add the library References, e.g: pjlib-util needs a reference from pjlib
Last modified 7 years ago
Last modified on Nov 20, 2017 2:53:32 PM
Attachments (1)
- patch_dll.diff (388.7 KB) - added by riza 7 years ago.
Download all attachments as: .zip