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

Bug#224757: X11/extensions/Xinerama.h missing extern "C"



Package: xlibs-dev
Version: 4.2.1-14
Severity: normal

I'm not certain where it's supposed to come from, but there should be an
extern "C" in there somewhere if <magic C++ compiler macro> is defined.
Currently, this header is unusable in C++ programs.

mizar:[/tmp] cat test.cc
#include <X11/extensions/Xinerama.h>

int main() {
        XineramaQueryExtension(NULL,NULL,NULL);
        return 0;
}
mizar:[/tmp] gcc -x c++ -o test test.cc -L/usr/X11R6/lib -lXinerama -lX11
-lXext
/tmp/cci2yPT9.o(.text+0x28): In function `main':
: undefined reference to `XineramaQueryExtension(_XDisplay*, int*, int*)'
/tmp/cci2yPT9.o(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
zsh: exit 1     gcc -x c++ -o test test.cc -L/usr/X11R6/lib -lXinerama -lX11
-lXext
mizar:[/tmp] gcc -x c -o test test.cc -L/usr/X11R6/lib -lXinerama -lX11
-lXext
mizar:[/tmp]


-- System Information:
Debian Release: unstable
Architecture: i386
Kernel: Linux mizar 2.4.21-evms2.1.0-skas-3 #1 Thu Jul 17 09:01:34 EDT 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages xlibs-dev depends on:
ii  libc6-dev [libc-dev]        2.3.2.ds1-10 GNU C Library: Development Librari
ii  xlibs                       4.2.1-14     X Window System client libraries

-- no debconf information


-- 
 - mdz




Reply to: