[poppler] pdftohtml build problems

Reece Dunn msclrhd at hotmail.com
Mon Apr 17 14:48:46 PDT 2006


Albert Astals Cid wrote:
> A Dilluns 17 Abril 2006 22:53, Reece Dunn va escriure:
> > Albert Astals Cid wrote:
> > > > The r and c on the src2 variable are the other way around, so the two
> > > > +/- instances are written as scr2.
> > >
> > > Ok, that's a typo, but that will cause unexpected behaviour?
> >
> > Well, since the argument name is misspelt, it will actually give a compile
> > error. What I get with msvc 8.0 is:
> >
> > HtmlOutputDev.cc
> > goo\GooVector.h(25) : error C2143: syntax error : missing ')' before
> > 'constant' goo\GooVector.h(91) : see reference to class template
> > instantiation 'Goo Vector<T>' being compiled
> > goo\GooVector.h(25) : error C2143: syntax error : missing ';' before
> > 'constant' goo\GooVector.h(25) : error C2059: syntax error : ')'
> > goo\GooVector.h(25) : error C2334: unexpected token(s) preceding '{';
> > skipping a pparent function body
> 
> I really can not see how's that a problem, i mean, ALL ocurrences of parameter 
> are scr2, i don't see how changing them to src2 makes it any better. one 
> could have named it foobariscool and it will work too, right?

You would be right, which is why it is working for GCC. However, msvc appears
to be defining scr2 as a macro constant. Hence the error above.

Performing the scr2 -> src2 translation makes it build with msvc.

- Reece
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


More information about the poppler mailing list