Re: [Podofo-users] Building error PoDoFo
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: zyx <zy...@li...> - 2016-06-14 12:25:14
|
On Sat, 2016-06-11 at 22:57 +0300, Ярослав Громов wrote: > [ 6%] Building CXX object > src/CMakeFiles/podofo_shared.dir/base/PdfEncrypt.cpp. > obj > In file included from D:/MGW64/mingw64/x86_64-w64-mingw32/include/windows.h:95:0 > , > from D:/MGW64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23, > > from D:\MGW32\podofo32\src\base\PdfCompilerCompatPrivate.h:35, > from D:\MGW32\podofo32\src\base\PdfDefinesPrivate.h:9, > from D:\MGW32\podofo32\src\base\PdfEncrypt.cpp:30: > D:/MGW32/GnuWin32/include/openssl/ossl_typ.h:176:33: error: expected ')' before > numeric constant > typedef struct ocsp_response_st OCSP_RESPONSE; > ^ Hi, there is a symbol clash between the wincrypt.h and openssl/ossl_typ.h, both are defining OCSP_RESPONSE. The wincrypt.h has it as a #define, while the openssl as a structure type name. Try to define (globally) NOCRYPT, which will avoid inclusion of the wincrypt.h from the windows.h. The 'globally' can be as a CFLAGS option, like -DNOCRYPT, or any similar way. Weird it didn't strike earlier. Bye, zyx -- http://www.litePDF.cz in...@li... |