Common Class declaration for 2 separate .GOC files

diel@intbuso.boeblingen.netsurf.de
Fri, 31 Jan 97 08:44:33 -0500

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
-----------------------------------------------------------