* error: forward declaration of `struct bit::bitObject'
@ 2005-10-17 9:49 Roel Bindels
2005-10-17 16:51 ` Florian Weimer
0 siblings, 1 reply; 2+ messages in thread
From: Roel Bindels @ 2005-10-17 9:49 UTC (permalink / raw)
To: gcc
Dear Listers,
I posted this question on the GCC-help list but maybe someone here can give
me some advice on how to proceed also.
I am working on a VC++ to gcc conversion, and I'm facing some problems that
I cannot find the answers for. I'm working on a Windows XP machine with
cygwin installed and as IDE I'm using Ecplipse. The GCC complier I am
working with is:
>gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) Copyright
>(C) 2004 Free Software Foundation, Inc. This is free software; see the
>source for copying conditions. There is NO warranty; not even for
>MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm getting the error message: error: forward declaration of `struct
bit::bitObject' and I cannot find the problem.
I hope that someone can point me in the correct direction.
With best regards,
Roel Bindels
//--------------------------------------------------------------------------
// Forward declarations
//--------------------------------------------------------------------------
class bitObject;
// Some other classes using proObject
....
....
....
//--------------------------------------------------------------------------
// Class bitObject
// Base none
//
// The bitObject base class defines an object that
// can be serialized in an archive
//
//--------------------------------------------------------------------------
class bitObject
{
public:
// Virtual default destructor for all derived classes
virtual ~bitObject() {}
// Read the instance data from the archive and
// indicate whether successful
virtual bool Load(bitInputArchive& a_Archive)
{
return true; // No data for base
}
// Write the instance data to the archive and
// indicate whether successful
virtual bool Store(bitOutputArchive& a_Archive)
{
return true; // No data for base
}
};
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: error: forward declaration of `struct bit::bitObject'
2005-10-17 9:49 error: forward declaration of `struct bit::bitObject' Roel Bindels
@ 2005-10-17 16:51 ` Florian Weimer
0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2005-10-17 16:51 UTC (permalink / raw)
To: Roel Bindels; +Cc: gcc
* Roel Bindels:
> I posted this question on the GCC-help list but maybe someone here
> can give me some advice on how to proceed also.
The advice you'll get here is exactly the same: post a small example
which reproduces the error message which troubles you.
(Please continue the discussion on gcc-help; that list is the correct
one.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-17 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-17 9:49 error: forward declaration of `struct bit::bitObject' Roel Bindels
2005-10-17 16:51 ` Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).