I never get those error messages but I think, I have some tips for you.
First of all, you should always make a mkmf, pmake depend if you
introduce a new file.
Your .goh file seems to be correct. A .goh file should only contain the
class definition and also necessary structs or defines for this class.
But it is not allowed to '@classdecl' a class more than once in a geode.
If I remember correct (sorry, no documentation next to me to verify it), you
must write '@extern classdecl' in one of the two files. Then Glue will
only declare the class once in the geode and not twice, which may cause
the error.
I hope this helps.
Regards
Gerd
On Fri, 31 Jan 1997 diel@intbuso.boeblingen.netsurf.de wrote:
> Hello GEOS experts,
> again I have a problem which I could imagine is trivial for most of you,
> but where I couldn't find the solution by experimenting and reading the
> documentation.
> You possibly remember that I had two subdivide my large program (.goc)
> into multiple pieces. After a lot of experimenting, I learned that it is
> (almost?) impossible to separate UI-objects into different goc files. Now,
> I'm at the point where I only seperated out some methods. As a
> consequence, the compiler told me that I need to have also a class
> definition in front of my methods. So, I made a .goh file which contains
> the COMMON class definition (for HD3DialogClass) for my 2 goc files. The
> compilation, now works fine, but Clue says
>
> Error _HD3DialogClass multiply defined in a single segment
> Error _HD3DialogBaseBogusVariable already defined (in segment DDIALOGBASE)
>
> What is the right way to do the global class definition such that clue no
> longer complaints ?
>
> Some further hints:
> - I did not yet make a new mkmf after introducing the goh file
> - My goh file contains only may class definition, nothing else
> @class HD3DialogClass, GenInteractionClass;
> @message void MSG_NB_SAVE();
> @endc;
> - I still have the '@classdecl HD3DialogClass;' in the two .goc files
> - I (thought I) made everything the same way as shown in the BENNOIT
> example
>
> Regards, Hans Diel
> --
> -----------------------------------------------------------
> diel@intbuso.boeblingen.netsurf.de
> -----------------------------------------------------------
>
>