George Karabotsos wrote:
I am having problems compiling Poly-ML 5.1 for Linux (Slackware distro).
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT xwindows.lo -MD -MP -MF .deps/xwindows.Tpo -c -o xwindows.lo xwindows.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -MT xwindows.lo -MD -MP -MF .deps/xwindows.Tpo -c xwindows.cpp -fPIC -DPIC -o .libs/xwindows.o /usr/include/X11/VendorP.h:87: error: previous declaration of 'VendorShellClassRec vendorShellClassRec' with 'C++' linkage /usr/include/Xm/VendorSP.h:58: error: conflicts with new declaration with 'C' linkage
I had an email about this a couple of days ago from someone with this problem. I've just copied my reply:
It's a bug in the X libraries, apparently. I found this: http://people.debian.org/~terpstra/message/20070518.224822.d6d7e06b.en.html among other references when I did a search. You should be able to fix it with updated libraries but if not you can use ./configure --without-x to compile without the X libraries.
David.