Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#33 Cannot compile 0.39 on Debian 4.0

open
nobody
None
5
2008-07-02
2008-07-02
Anonymous
No

Hello.

When I try to "make" pdftohtml I get the following error

g++ -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1 -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I../goo -I../xpdf -I../fofi -I../splash -I -I/usr/X11R6/include -c HtmlOutputDev.cc
HtmlLinks.h:22: error: extra qualification âHtmlLink::â on member âisEqualDestâ
make[1]: *** [HtmlOutputDev.o] Error 1
make[1]: Leaving directory `/home/user/pdftohtml-0.39/src'
make: *** [all] Error 2

Anyone got any ideas?

Mark

Discussion

  • I'm having the same problem, please help!

     
  • Hi,
    It seems the error comes from gcc version 4 not supporting some c++ syntax previously supported.
    (http://forum.ubuntu-fr.org/viewtopic.php?id=83373)

    I could compile by removing the class name in isEqualDest prototype (HtmlLinks.h).

    Below is the diff:

    # diff ./pdftohtml-0.39/src/HtmlLinks.h.orig ./pdftohtml-0.39/src/HtmlLinks.h
    22c22,24
    < GBool HtmlLink::isEqualDest(const HtmlLink& x) const;
    ---
    > /* yoyo fix */
    > /* GBool HtmlLink::isEqualDest(const HtmlLink& x) const; */
    > GBool isEqualDest(const HtmlLink& x) const;
    #

    Hope this helps.