Re: FVWM: Compiling fvwm2 on SCO 5.0.2 - cpp problems

From: David Nugent <davidn_at_labs.usn.blaze.net.au>
Date: Thu, 01 May 1997 11:13:18 +1000

> /* THIS LINE, WHICH SHOULD BE EXPANED BY THE MACRO, COMPILES. */
> tmp_win->title_height = ( ( tmp_win )->fl->TitleHeight ) +
> tmp_win->bw;
> ------------------------------------------------------------------
>
> This is what cc -E add_window.c (with all other Makefile options like
> -DUSEDECOR added, also.)
>
> # 227
> tmp_win->title_height = ( ( tmp_win ) -> fl ->TitleHeight ) + tmp_win
> -> bw ;
>
> I'm guessing that with the extra spaces, the compiler doesn't recognize
> -> for pointers and is producing errors.

Then the compiler's parser is broken. Both lines of code are syntactically
identical.

IMHO, get and install gcc. I don't know which version of "SCO" you're using,
but in the R3.2 days circa 1991 or so, their compiler is very, very broken.
We used gcc for any reasonably sized projects, relegating SCO's only to
building device drivers and reconfiguring/relinking the kernel.





--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Apr 30 1997 - 20:15:59 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST