Article # 22, added by Geoworks, historical record
| first | previous | index | next | last |

Borland compiler error



Q:
I have the following code fragment in my global.goh and I get a Goc
error saying "Open conditional...". 

    @extern object @SomeObject;
    @ifdef ZOOMER
    @extern object @AnotherObject;
    @endif
    @extern object @MyOtherObject;

A:
The problem there is Goc doesn't like it when the @ifdef and @endif are
not against the left margin. Fix it be bringing the @ifdef and @endif to
the very left side of the document. For example: 

    @extern object @SomeObject;
@ifdef ZOOMER
    @extern object @AnotherObject;
@endif
    @extern object @MyOtherObject;