> I have a problem with the adding images to my app.
> 
> Fluid embeds the entire image into an array and while 
> compiling I get an "static
> unsigned char *" error.
> I use mingw to compile btw. Without the image it will work.
> 
> This is the code it generates:
> 
>     { Fl_Box* o = new Fl_Box(20, 120, 100, 95);
>       o->image(image_imageName);
>     } // Fl_Box* o
> 
> How can I turn this into something else or at least working code?
> Like another way to add/embed my image into my app.

I use fltk with mingw all the time on Windows and image labels and so
forth work fine... You'll need to provide more info I think:

- What version of fltk?
- What is the actual error reported?
- What compile / link commands are you using?
- Show us a minimal, complete, example that exhibits the failure.

In summary - this ought to Just Work, so there is probably something odd
in the way you are executing the compile or link stages, I think.



> And how can I make a simple fltk::message popup, with only an 
> OK button and so I
> display text.
> 
> The fltk::message from the FLTK documentation wasn't clear.

Um, from the above fragment I assumed you were using fltk-1.x, but that
naming style (fltk::name) looks more like fltk-2 (deprecated, use
fltk-1.3 instead for now).
So, maybe you are reading the wrong docs?

For a fltk-1.x version, you'd probably want to call fl_message(txt,...);
I'd suggest.






SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to