#84 Compilation error with GCC4

open
nobody
None
5
2007-10-29
2007-10-29
Anonymous
No

I get a compilation error with GCC 4 under Fedora Core 6 thaat I did not with GCC3 under Fedora Core 3 in pdftohtml-0.36. I blindly made the following change and it seems to work:

*** pdftohtml-0.36/src/HtmlLinks.h.orig 2003-06-24 23:41:27.000000000 +0100
--- pdftohtml-0.36/src/HtmlLinks.h 2006-12-19 09:37:43.000000000 +0000
***************
*** 19,25 ****
HtmlLink& operator=(const HtmlLink& x);
HtmlLink(double xmin,double ymin,double xmax,double ymax,GString *_dest);
~HtmlLink();
! GBool HtmlLink::isEqualDest(const HtmlLink& x) const;
GString *getDest(){return new GString(dest);}
double getX1() const {return Xmin;}
double getX2() const {return Xmax;}
--- 19,25 ----
HtmlLink& operator=(const HtmlLink& x);
HtmlLink(double xmin,double ymin,double xmax,double ymax,GString *_dest);
~HtmlLink();
! GBool isEqualDest(const HtmlLink& x) const;
GString *getDest(){return new GString(dest);}
double getX1() const {return Xmin;}
double getX2() const {return Xmax;}

Michael

Discussion

  • HtmlLink.h patch

     
    Attachments