[comp.sys.ibm.pc.rt] HC problems

misha@huji.ac.il (Michael Pak) (06/28/90)

I have posted already this problem, but for some mysterious reason it didn't
show up. So here it is again:

I have the following piece of code:
----------------------------------
static  Arg     arg_wh[] = {
        {XtNwidth,      (XtArgVal) &window_w},
        {XtNheight,     (XtArgVal) &window_h},
};
----------------------------------
and the 'hc' compiler shouts:

(We use 'hc' version 1.4)

L602/C12:     Must be a compile- or load-time computable expression.

With 'pcc' though there are absolutely no problems.
Is there any way to make 'hc' accept this kind of expressions?

Thanks.

*********************************************
Michael Pak
Department of CS, Hebrew University of Jerusalem, Israel.
E-Mail: misha@boojum.huji.ac.il
*********************************************