to compile the development branch on my NT box.

I have managed to create the initial configure file on a Linux box and
ftp'ed the whole thing over to the NT box.
automake and autoconf seem to be either broken or I have some problems
that I cant figure out.
Anyway, after getting the xforms library from Stevens ftp site
(www.xforms.com seems to be down right now) I managed to get over the
initial configuration step but when the make step gets to compiling
mathed I get a gazillion error messages,
of which I include the first lines here:

It looks like the X11 header files are not ANSI C++ compliant and
therefore should be included in/with an
extern "C" {} construct. Otoh when I give that a quick shot it doesnt
change anything either.

So what I did then was to look into the Xlib.h file and I found that the
function prototypes have a statement like

#if NeedFunctionPrototypes
 bla bla bla
#endif

but this seems not the problem, there are function prototypes that do
not declare a return value and that _is_ a problem for an ANSI C++
compiler.

Is there an easy fix for this ?

Thanks a lot for any kinda hints.

Regards
Roland



pcroland:~/Src/C++/lyx-devel/src/mathed 241 > make
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../../src -I.
./../images -I./../   -I/usr/local/include    -I/usr/X11R6.4/include  -g
-O -fno
-rtti -Wall -W -Wconversion -DNeedFunctionPrototypes -c formula.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../
-I/usr/local/incl
ude -I/usr/X11R6.4/include -g -O -fno-rtti -Wall -W -Wconversion
-DNeedFunctionP
rototypes -Wp,-MD,.deps/formula.pp -c formula.C -o formula.o
In file included from /usr/local/include/forms.h:988,
                 from ../../src/lyxfont.h:18,
                 from ../../src/insets/lyxinset.h:20,
                 from formula.h:24,
                 from formula.C:25:
/usr/X11R6.4/include/X11/Xlib.h:2058: ANSI C++ forbids declaration
`XSetTransien
tForHint' with no type
/usr/X11R6.4/include/X11/Xlib.h:2066: ANSI C++ forbids declaration
`XActivateScr
eenSaver' with no type
/usr/X11R6.4/include/X11/Xlib.h:2073: ANSI C++ forbids declaration
`XAddHost' wi
th no type
/usr/X11R6.4/include/X11/Xlib.h:2081: ANSI C++ forbids declaration
`XAddHosts' w
ith no type
/usr/X11R6.4/include/X11/Xlib.h:2088: ANSI C++ forbids declaration
`XAddToExtens
ionList' with no type
/usr/X11R6.4/include/X11/Xlib.h:2095: ANSI C++ forbids declaration
`XAddToSaveSe
t' with no type
/usr/X11R6.4/include/X11/Xlib.h:2149: ANSI C++ forbids declaration
`XAllowEvents
' with no type
/usr/X11R6.4/include/X11/Xlib.h:2155: ANSI C++ forbids declaration
`XAutoRepeatO
ff' with no type
g++: make: *** [formula.lo] Error 1

Reply via email to