Hi,

Sorry for the delay, some machine problems.

On Tue, 25 Jan 2005 20:45:20 -0800, Robby Stephenson
<[EMAIL PROTECTED]> wrote:
> On Friday 14 January 2005 1:55, you wrote:
> > When building 'tellico' on amd64 with gcc-4.0,
> > I get the following error:
> ...
> > With the attached patch 'tellico' can be compiled
> > on amd64 using gcc-4.0.

Andreas, apparently, I haven't a complete gcc-4.0 system, I get
linking errors even with your patches. I What do I need precisely to
build it ? What is the exact process ?

> 
> > diff -urN ../tmp-orig/tellico-0.13.1/src/document.cpp ./src/document.cpp
> > --- ../tmp-orig/tellico-0.13.1/src/document.cpp       2004-11-25
> > 17:51:05.000000000 +0100 +++ ./src/document.cpp       2005-01-14
> > 10:33:05.204602973 +0100
> > @@ -129,7 +129,7 @@
> >    Export::TellicoZipExporter exporter(m_coll);
> >    exporter.setEntryList(m_coll->entryList());
> >    QByteArray data = exporter.data(false);
> > -  bool success = FileHandler::writeDataURL(url_, data);
> > +  bool success = Tellico::FileHandler::writeDataURL(url_, data);
> 
> Is this change enough to fix the compilation?

For a first part, yes.

> 
> > diff -urN ../tmp-orig/tellico-0.13.1/src/image.h ./src/image.h
> > --- ../tmp-orig/tellico-0.13.1/src/image.h    2004-10-30 02:02:27.000000000
> > +0200 +++ ./src/image.h       2005-01-14 10:39:21.043011102 +0100
> > @@ -42,11 +42,11 @@
> >
> >    static QCString outputFormat(const QCString& inputFormat);
> >
> > -private:
> >    Image(const QString& filename);
> >    Image(const QImage& image, const QString& format);
> >    Image(const QByteArray& data, const QString& format, const QString&
> > id);
> 
> I'd like to keep these private, just to keep me from bad mistakes in the
> future. The Image class declares FileHandler as a friend, so I'm confused
> about why it can't call a private constructor. My c++ skills are lacking
> here.
> 
> Regis, do you have any help?

I'm not originally a C++ specialist, but after some tracking, I found
it's the same problem as with the first fix. It seems that gcc 4 is
very strict with friend classes. I'm testing another fix which should
fit better with what you want to do.

Thanks all for your help.

Regis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to