In file included from /usr/include/X11/Xlib.h:47, from /usr/include/FL/x.H:37, from /usr/include/FL/fl_draw.H:27, from src/app.h:43, from src/spiritvnc.cxx:47: /usr/include/X11/xpm.h: In function ‘int main(int, char**)’: /usr/include/X11/xpm.h:286:1: error: expected unqualified-id before string constant _XFUNCPROTOBEGIN ^~~~~~~~~~~~~~~~ src/spiritvnc.cxx:94:5: error: ‘XpmCreatePixmapFromData’ was not declared in this scope XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display), pmSpiritvnc_xpm, &pm, &mask, NULL); ^~~~~~~~~~~~~~~~~~~~~~~ src/spiritvnc.cxx:94:5: note: suggested alternative: ‘XCreatePixmapFromData’ XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display), pmSpiritvnc_xpm, &pm, &mask, NULL); ^~~~~~~~~~~~~~~~~~~~~~~ XCreatePixmapFromData
I am using antiX Linux 19.3, which is based on Debian. All the dev packages are installed and as noted on that OS Issues page, I am callingFl_Window::show(int argc, char** argv). I also tried the XCreatePixmapFromData method, but it produces the same or similar error message. I have grepped for XpmCreatePixmapFromData in /usr/includeand it does show up in X11/xpm.h.
I'm not a big Xlib user -- is there something else I should try?
PS: Google groups is very clunky for code entry and other programming-related text-editing...have you thought about using something else?
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.