[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with Nam compilation



On Tue, 16 Nov 1999, Pellegrino Paolo wrote:

> when I try to install the current version of Nam (but I have the same
> problem with earlier versions) I get the following error:
> 
> rm -f netview.o; c++ -o netview.o -c -O2 -DTCL_TK  -DNDEBUG -mv8
> -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H
> -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H
> -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -DHAVE_LIBZ1_1_3 -DHAVE_ZLIB_H  -I.
> -I../tclcl-1.0b8-current -I../otcl-1.0a4 -I../tkbox/include
> -I../tclbox/include -I../zlib-1.1.3 -I/usr/openwin/include  netview.cc
> In file included from bbox.h:39,
>                  from netview.cc:44:
> /usr/openwin/include/X11/Xlib.h:1894: ANSI C++ forbids declaration
> `XSetTransientForHint' with no type
> /usr/openwin/include/X11/Xlib.h:1902: ANSI C++ forbids declaration
> `XActivateScreenSaver' with no type

...etc.

These are all defined (in my Xlib.h 11.221 of '93 vintage, anyway) in
the form:

extern XActivateScreenSaver(
);

i.e no type. What compiler and version are you using? do gcc -v. I
think you could probably redefine them all as extern void and get away
with it...

cheers,

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>