Summary: | dix.h and XKBfile.h have different declarations for NameForAtom() | ||
---|---|---|---|
Product: | xorg | Reporter: | Andrey Ponomarenko <aponomarenko> |
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED INVALID | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Andrey Ponomarenko
2011-05-05 06:22:17 UTC
Also if compiling with G++: /usr/include/xorg/dix.h:291: error: previous declaration of 'char* NameForAtom(Atom)' with 'C++' linkage /usr/include/X11/extensions/XKBfile.h:249: error: conflicts with new declaration with 'C' linkage XKBfile.h is a client-side, not server-side header, so you'll have many clashing definitions anyway. You cannot include any client-side and server-side headers together at all. Among other things, the definition of CARD32 differs between client and server code on 64-bit systems, and many other clashes. I don't think we support C++ server modules anyway: I guess you just need more extern "C" { } wrapping. What were you trying to do with XKBfile.h, out of interest? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.