EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ChannelArchiver build error
From: "D. Peter Siddons" <[email protected]>
To: Kay-Uwe Kasemir <[email protected]>
Cc: [email protected]
Date: Sat, 11 Feb 2006 15:14:18 -0500
Hi Kay,
Thanks for the tip. I am using gcc4.0.2, which is the default version for the Ubuntu distribution I'm using. Unfortunately, I am pretty clueless with c++, so I messed around trying to do what you suggest, but only got deeper in the hole :( I guess I'll have to wait until someone who knows what they're doing tries to build it.
Thanks,
Pete.


Kay-Uwe Kasemir wrote:
Hello Pete:

I just tried to build ChannelArchiver, and got the following:
../DataFile.h:130: error: ?DataHeaderIterator? does not name a type
For reasons too terrible to describe in detail here,
there are two DataFile.h: One in LibIO and one in Storage.
The headers from LibIO are no longer installed, i.e. not
copied to extensions/include. One should make sure
that none are left in extensions/include from a previous version
of the archiver toolset.

Having said that: I think you're at the make stage of compiling LibIO,
and use the DataFile.h in LibIO, not one left in extensions/include,
and now we're faced with a compiler issue.
What's your compiler version?

Datafile.h indeed uses the DataHeaderIterator which is
defined later on inside the same file, because Datafile
and DataHeaderIterator refer to each other.

So far, that was OK by simply sometimes using 'class DataHeaderIterator'
instead of only 'DataHeaderIterator', so that the compiler
gets an idea of what will come.
I think that's really only supposed to work for
'class DataHeaderIterator *' or 'class DataHeaderIterator &',
so I can see why your compiler is more correct than the code,
but anyway, so far it was compiling.

You can add 'class DataHeaderIterator' wherever the compiler complains
in your case.
Or move the DataHeaderIterator class before the Datafile,
which will cause the compiler to complain about an unknown 'Datafile',
and then you keep changing 'Datafile' into 'class Datafile' until it's happy.


Let me know what you get to work.
Thanks,
-Kay



References:
ChannelArchiver build error D. Peter Siddons
Re: ChannelArchiver build error Kay-Uwe Kasemir

Navigate by Date:
Prev: ArchiveDataServer errors liushu
Next: Re: ArchiveDataServer errors Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: ChannelArchiver build error Kay-Uwe Kasemir
Next: some error about archive-viewer-14 liushu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·