Cannot compile 0.39 on Debian 4.0
Status: Beta
Brought to you by:
meshko
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
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.