Building fails with GCC 4.2.3
Status: Beta
Brought to you by:
meshko
make[1]: Entering directory `/home/milanb/devel/temp/pdftohtml-0.39/src'
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
In file included from HtmlOutputDev.h:22,
from HtmlOutputDev.cc:31:
HtmlLinks.h:22: error: extra qualification 'HtmlLink::' on member 'isEqualDest'
HtmlOutputDev.cc: In member function 'void HtmlPage::dumpComplex(FILE*, int)':
I get the same error with gcc 4.1.2 on CentOS 5.4. I am attempting to compile version 0.39 of pdftohtml (the latest stable version available at the time of this post). It appears that removing the offending "HtmlLink::" satisfies gcc. Here's a patch for that (against v 0.39):
diff -Naur pdftohtml-0.39/src/HtmlLinks.h pdftohtml-0.39-mod/src/HtmlLinks.h
--- pdftohtml-0.39/src/HtmlLinks.h 2003-06-24 17:41:28.000000000 -0500
+++ pdftohtml-0.39a/src/HtmlLinks.h 2010-05-04 15:52:51.000000000 -0500
@@ -19,7 +19,7 @@
HtmlLink& operator=(const HtmlLink& x);
HtmlLink(double xmin,double ymin,double xmax,double ymax,GString *_dest);
~HtmlLink();
- GBool HtmlLink::isEqualDest(const HtmlLink& x) const;
+ GBool isEqualDest(const HtmlLink& x) const;
GString *getDest(){return new GString(dest);}
double getX1() const {return Xmin;}
double getX2() const {return Xmax;}
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I'm too suffering from same diseases....here is my traceback of command "make"
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
In file included from HtmlOutputDev.h:22,
from HtmlOutputDev.cc:31:
HtmlLinks.h:22: error: extra qualification ‘HtmlLink::’ on member ‘isEqualDest’
HtmlOutputDev.cc: In member function ‘void HtmlPage::dumpComplex(FILE*, int)’:
HtmlOutputDev.cc:613: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc: At global scope:
HtmlOutputDev.cc:793: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:793: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc: In member function ‘void HtmlOutputDev::doFrame(int)’:
HtmlOutputDev.cc:816: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc: In constructor ‘HtmlOutputDev::HtmlOutputDev(char*, char*, char*, char*, char*, char*, char*, GBool, int, GBool)’:
HtmlOutputDev.cc:868: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:868: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:869: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:870: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:871: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:872: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:890: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:912: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:930: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc: In member function ‘virtual void HtmlOutputDev::drawImageMask(GfxState*, Object*, Stream*, int, int, GBool, GBool)’:
HtmlOutputDev.cc:1139: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc: In member function ‘virtual void HtmlOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, int*, GBool)’:
HtmlOutputDev.cc:1239: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc: In member function ‘GBool HtmlOutputDev::newOutlineLevel(FILE*, Object*, Catalog*, int)’:
HtmlOutputDev.cc:1463: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:1473: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:1484: warning: deprecated conversion from string constant to ‘char*’
HtmlOutputDev.cc:1539: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [HtmlOutputDev.o] Error 1
make[1]: Leaving directory `/root/downloads/pdftohtml-0.39/src'
make: *** [all] Error 2
Distribution I'm using is.....
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
Last edit: Anonymous 2013-10-01