jmd@ee.umr.edu (Jim Dumser) (08/24/90)
I've been trying to install TeX on our new Solbourne. It compiles fine with
X11, but when trying to add SunWindows to it, I have problems with sun.c.
It looks like this file was mangled as I got it.
Lines 21 thru 26 look like this:
/*
* Gray background for graphics area
*/
short mf_graybackground_image[] = {0x5555, 0xaaaa};
mpr_static(mf_graybackground, 2, 2, 1, mf_graybackground_image);
I get errors on line 26 (parse error before `_data', initializer for scalar
variable requires one element, & warning: data definition lacks type or
storage class). I can understand the errors -- line 26 is a function call,
but it is at the global level (it isn't inside a function definition), but I
don't know what is supposed to be going on. I've tried finding
mpr_static(), but can't find it in any of the source files. I also tried
commenting the line out, but then I get errors later in the file about
mf_graybackground being undefined.
Jim
+-------------------------------------------------------+
| The fear of the Lord is the beginning of knowledge, |
| but fools despise wisdom and discipline. Proverbs 1:7 |
|-------------------------------------------------------|
| Internet: jmd@ee.umr.edu | M S - D O S . . . |
| UUCP: ...uunet!umree!jmd | Just say "NO!" |
+-------------------------------------------------------+ahl@technix.oz.au (Tony Landells) (08/27/90)
I had this problem when I used gcc to build everything because mpr_static() uses the old method of performing string concatenation. If this is your problem, then you can try using the -traditional flag, though I put the following in before the sun include files: /* the following is to make gcc swallow mpr_static */ #ifdef __GNUC__ #define CAT(x, y) x ## y #endif Note that this must go *before* the includes, otherwise you'll also need to #undef CAT(x, y)... Hope this helps, Tony Landells.