Compile as static library?

Jan 23, 2014 at 9:03 PM
Hello, I am writing an dll and I want to remove the need for additional FW1FontWrapper.dll. How can I compile your project as an static library? Currently you have these options
// Define if building a DLL for the font-wrapper
#define FW1_COMPILETODLL

// Define to use LoadLibrary instead of linking to DLLs
//#define FW1_DELAYLOAD_DWRITE_DLL
//#define FW1_DELAYLOAD_D3DCOMPILER_XX_DLL
FW1_COMPILETODLL is only option which produces .lib(only 3kb?) file but it also produces FW1FontWrapper.dll file which I need to put in my main executable folder for my own dll to work.
Coordinator
Jan 24, 2014 at 5:21 AM
You have to change the project settings. In the project general settings, change the configuration type to Static library (.lib), instead of DLL.
However, I would recommend adding the source-files to your project that uses the wrapper instead, or at least make sure to compile the projects with the exact same settings (as they will be linked together and if both projects use the standard library those functions might potentially interfere with each other).