This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: conflicting header files VendorSP.h and VendorP.h


Siegmar Gross wrote:
...
if mpic++ -DHAVE_CONFIG_H -I. -I. -I.  -I../../src
  -I/usr/X11R6/include   -O -MT xmpi_misc.o -MD -MP -MF
  ".deps/xmpi_misc.Tpo" \
          -c -o xmpi_misc.o `test -f 'xmpi_misc.cc' ||
   echo './'`xmpi_misc.cc; \
        then mv -f ".deps/xmpi_misc.Tpo" ".deps/xmpi_misc.Po"; \
        else rm -f ".deps/xmpi_misc.Tpo"; exit 1; \
        fi
In file included from /usr/X11R6/include/Xm/XmP.h:1646,
                 from /usr/X11R6/include/Xm/PrimitiveP.h:29,
                 from /usr/X11R6/include/Xm/SashP.h:29,
                 from xmpi_misc.cc:29:
/usr/X11R6/include/X11/VendorP.h:87: error: previous declaration
  of 'VendorShellClassRec vendorShellClassRec' with 'C++' linkage
/usr/X11R6/include/Xm/VendorSP.h:58: error: conflicts with new
  declaration with 'C' linkage
mpic++: No such file or directory
make[3]: *** [xmpi_misc.o] Error 1


I temporarily put the conflicting line in file "/usr/X11R6/include/Xm/VendorSP.h" into a comment and could finish the installation. Perhaps somebody knows how to fix the problem in the cygwin distribution. Thank you very much for a fix in one of the next distributions in advance.

It seems that /usr/include/X11/VendorP.h and other libXt headers are not safe for C++ compilation. This is fixed upstream in X.Org git, but this fix has not yet made it into a release version (the current version 1.0.5)


If you want to work with libXt in C++, you'll have to fix the headers to decorate them with 'extern "C"' as required, or perhaps use the following patch

http://cgit.freedesktop.org/xorg/lib/libXt/commit/?id=6b483e355de6c5ee5dc635ab9b817bf72680b016

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]