gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Other errors


From: Luis Garcia Alanis
Subject: Other errors
Date: Mon, 18 Feb 2013 19:01:27 -0800

I went pass the first set of errors, but now here is another one:

For example poppler_document is a void * that is being static casted to PDFDoc*, I don´t know what XRef* has to do with this??? is this some sort of static analysis bug.. a static cast should not output this error, but I am unfamiliar with Objective C tricks and tips.

 


Build Project: PopplerKit

Making build-headers in subprojects of framework PopplerKit...
Making build-headers for subproject bindings...
make[3]: Nothing to be done for `internal-subproject-build-headers'.
Making build-headers for subproject MissingKit...
make[3]: Nothing to be done for `internal-subproject-build-headers'.
Making build-headers for framework PopplerKit...
Making all in subprojects of framework PopplerKit...
Making all for subproject bindings...
 Compiling file poppler_splash_renderer.cpp ...
poppler_splash_renderer.cpp:56:50: error: cannot initialize a parameter of type 'PDFDoc *' with an rvalue of type 'XRef *'
   SYNCHRONIZED(SPLASH_DEV(output_dev)->startDoc(PDF_DOC(poppler_document)->getXRef()));
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poppler_splash_renderer.cpp:29:22: note: expanded from:
#define PDF_DOC(obj) static_cast<PDFDoc*>(obj)
                     ^
./poppler.h:38:4: note: expanded from:
   x; \
   ^
/usr/include/poppler/SplashOutputDev.h:309:25: note: passing argument to parameter 'docA' here
  void startDoc(PDFDoc *docA);
                        ^
poppler_splash_renderer.cpp:89:50: error: cannot initialize a parameter of type 'GBool (*)(void *)' with an rvalue of type 'Catalog *'
                                                 PDF_DOC(poppler_document)->getCatalog()));
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poppler_splash_renderer.cpp:29:22: note: expanded from:
#define PDF_DOC(obj) static_cast<PDFDoc*>(obj)
                     ^
./poppler.h:38:4: note: expanded from:
   x; \
   ^
/usr/include/poppler/Page.h:227:15: note: passing argument to parameter 'abortCheckCbk' here
                    GBool (*abortCheckCbk)(void *data) = NULL,
                            ^
2 errors generated.
make[4]: *** [obj/bindings.obj/poppler_splash_renderer.cpp.o] Error 1
make[3]: *** [internal-subproject-all_] Error 2
make[2]: *** [bindings.all.subproject.variables] Error 2
make[1]: *** [PopplerKit.all.framework.variables] Error 2
make: *** [internal-all] Error 2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]