Hello!
I recently upgraded my static SQLCipher library in windows project from an older version to 4.14.0 and promptly ran into a linker error due to DllMain() already being defined in MSVCRT.lib. After some digging, I discovered the SQLCIPHER_OMIT_DLLMAIN flag and with that everything works fine.
My question is, shouldn’t SQLCIPHER_OMIT_DLLMAIN always be defined for static builds, or is there a situation where one would need to have this method in the static library? And if it isn’t needed, wouldn’t it make sense to have the flag be set automatically by the build system?