wxPDFDocument compiling
Posted: Fri Sep 09, 2011 12:24 pm
First the environment: MinGW, wxWidgets-2.8.11, wxPDFDocument 0.9.2, Codelite v 3.0.5041
I'm trying to install(compile) the wxPDFDocument by using the makefile.gcc but i get the following error:
C:\Programme\wxPDFDocument\build>mingw32-make -f makefile.gcc
if not exist ..\lib\gcc_dll mkdir ..\lib\gcc_dll
g++ -c -o gccmswud\pdfdoc_dll_pdfxml.o -DHAVE_W32API_H -DWXUSINGDLL -D_UNICODE -
D__WXDEBUG__ -D__WXMSW__ -IC:\Programme\wxWidgets-2.8.11\lib\gcc_dll\mswud -IC:\
Programme\wxWidgets-2.8.11\include -O0 -g -W -Wall -I..\include -DWXMAKINGDLL_PD
FDOC -MTgccmswud\pdfdoc_dll_pdfxml.o -MFgccmswud\pdfdoc_dll_pdfxml.o.d -MD -MP
../src/pdfxml.cpp
../src/pdfxml.cpp: In member function 'void wxPdfDocument::PrepareXmlCell(wxXmlN
ode*, wxPdfCellContext&)':
../src/pdfxml.cpp:1082:93: error: operands to ?: have different types 'const wxC
har*' and 'wxString'../src/pdfxml.cpp: In member function 'void wxPdfDocument::WriteXmlCell(wxXmlNod
e*, wxPdfCellContext&)':
../src/pdfxml.cpp:1749:93: error: operands to ?: have different types 'const wxC
har*' and 'wxString'mingw32-make: *** [gccmswud\pdfdoc_dll_pdfxml.o] Error 1
Before compiling I first configured the makefile to my environment and set the WXWIN to my wxWidgets path as recommended.
I've tried to find that problem in the source code but I couldn't find the function "wxGetTranslation" so I can't figure out what exactly the problem ist.
Regards, Nik
edit: tried now the version 0.9.1.2 and everything worked well, i guess that this is a bug that occurs with several compiler settings
I'm trying to install(compile) the wxPDFDocument by using the makefile.gcc but i get the following error:
C:\Programme\wxPDFDocument\build>mingw32-make -f makefile.gcc
if not exist ..\lib\gcc_dll mkdir ..\lib\gcc_dll
g++ -c -o gccmswud\pdfdoc_dll_pdfxml.o -DHAVE_W32API_H -DWXUSINGDLL -D_UNICODE -
D__WXDEBUG__ -D__WXMSW__ -IC:\Programme\wxWidgets-2.8.11\lib\gcc_dll\mswud -IC:\
Programme\wxWidgets-2.8.11\include -O0 -g -W -Wall -I..\include -DWXMAKINGDLL_PD
FDOC -MTgccmswud\pdfdoc_dll_pdfxml.o -MFgccmswud\pdfdoc_dll_pdfxml.o.d -MD -MP
../src/pdfxml.cpp
../src/pdfxml.cpp: In member function 'void wxPdfDocument::PrepareXmlCell(wxXmlN
ode*, wxPdfCellContext&)':
../src/pdfxml.cpp:1082:93: error: operands to ?: have different types 'const wxC
har*' and 'wxString'../src/pdfxml.cpp: In member function 'void wxPdfDocument::WriteXmlCell(wxXmlNod
e*, wxPdfCellContext&)':
../src/pdfxml.cpp:1749:93: error: operands to ?: have different types 'const wxC
har*' and 'wxString'mingw32-make: *** [gccmswud\pdfdoc_dll_pdfxml.o] Error 1
Before compiling I first configured the makefile to my environment and set the WXWIN to my wxWidgets path as recommended.
I've tried to find that problem in the source code but I couldn't find the function "wxGetTranslation" so I can't figure out what exactly the problem ist.
Regards, Nik
edit: tried now the version 0.9.1.2 and everything worked well, i guess that this is a bug that occurs with several compiler settings