|
|
On 17 May 2021, at 21:42, Will B wrote:
>
> On Monday, May 17, 2021 at 1:38:45 PM UTC-7 Ian MacArthur wrote:
> Not sure... This is a “works for me” sort of answer, but here’s some code [snip]
>
> And that’s pretty much it...
>
> I’ve no clue what causes the compiler issue you are seeing.
>
> Hi Ian,
>
> Thanks for the reply. :-)
>
> That looks very usable, if I could get XpmCreatePixmapFromData to actually work at all. I almost suspect it's either a Debian or antiX issue, but will need to spin some virtual machines up to see.
I tested on Ubuntu (which is also debian) so I guess it’s not that.
My best guess would be some headers weirdness, though I do not know what.
At the top of the file I posted those snippets form, I have... (edited to remove the WIN32 and OSX portions)
// FLTK headers
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Sys_Menu_Bar.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Progress.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Native_File_Chooser.H>
#include <FL/Fl_Preferences.H>
#include <FL/x.H>
<snip>
# include <X11/xpm.h>
# include "media/fn5x64.xpm"
And after that XpmCreatePixmapFromData() seems to be happily visible...
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CA2C54D9-09D9-433D-95BB-E2824AE43510%40gmail.com.
[ Direct Link to Message ] | |
|
| |