[Poppler-bugs] [Bug 11228] New: compilation errors when using popler headers in multithreaded applications

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 11 02:51:22 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=11228

           Summary: compilation errors when using popler headers in
                    multithreaded applications
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: Axel.Howind at htp-tel.de


headers installed using "--enable-xpdf-headers" mix up use of #include
"goo/..." and <goo/...>, wich leads to compilation errors in some circumstances
(applies to 0.5.4 and 0.5.9 Release Candidate).

Example (from GlobalParams.h):

  #include "goo/gtypes.h"
  #include "CharTypes.h"

  #if MULTITHREADED
  #include <goo/GooMutex.h>
  #endif

This works when compiling w/o MULTITHREADED, but does not when it is defined.

Steps to reproduce: use #include <poppler/GlobalParams.h> in any of your
sources and compile with MULTITHREADED defined.

Workaround: Use an additional -I /usr/local/include/poppler in your
application's makefile (or wherever your headers are installed).


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list