> gga wrote:
> >>> [EMAIL PROTECTED]:~$ fltk-config --compile saveCan2.cxx
> >>> g++ -I/usr/local/include -I/usr/include -o saveCan2 saveCan2.cxx
> >>> -L/usr/lib -L/usr/local/lib /usr/local/lib/libfltk.a -lm -lXext -lX11
> >>> saveCan2.cxx:140:15: warning: multi-character character constant
> >>> bmppix.h:3: error: expected unqualified-id before â&&â token
> >> These look like copy/paste errors, when you pasted from your news
> >> reader.
> >
> > If the code was written in fluid, it is likely's fluid (fltk) EXTREMELY
> > annoying bug with keystrokes and text editor. See
> > http://www.fltk.org/str.php?L1725 and http://www.fltk.org/str.php?L1757.
>
> Speaking for the OP, I don't think fluid's code editor would
> have been used to compile and run the pasted .fl and .h file.
>
> Only thing I'd think he would have needed from fluid
> is to just load the .fl file and hit 'write code'..
> no fluid code editor should be involved, I'd think.
>
> BTW, I haven't seen mysterious characters in fluid 1.1.8's editor,
> as I've been using fluid a lot for editing code. Can't answer to 2.x
> or issues with international keyboards though.
sorry, I was out of home in the week-end.
Yes, it is the fluid .fl file ("just load the .fl file and hit 'write code'..")
I'm working with the last fltk (and fluid) v1.1.x-r5940
I have copied the fluid file (.fl) and the header file (.h) from this forum, my
last reply, and i have pasted they in a text editor (nedit),
then saved as pix.fl and bmppix.h.
I have loaded pix.fl with fluid, and only pushed 'write code'.
>From a linux bash console I have typed "make" with this Makefile:
******************************************
CPP=g++
LIB= -L/usr/X11R6/lib -L/usr/local/lib -lfltk -lfltk_images -ljpeg -lpng -lX11
INC= -I/usr/local/include -I/usr/X11R6/include -I/usr/include
OPTIM = -g -O2 -Wall -Wunused -fno-exceptions
CFLAGS = $(OPTIM)
TARGET=pix
SRC=$(TARGET).cxx
all: clean $(TARGET)
strip $(TARGET)
$(TARGET)
$(TARGET):
$(CPP) $(OPTIM) -o $(TARGET) $(SRC) $(INC) $(LIB)
clean:
rm -f $(TARGET) core
******************************************
and everything is OK!
If You prefer, i will post the pix.cxx file and the pix.h file.
(Anyway, remember I am not sure that subclass of Fl_Box and my draw() and
handle() methods are bugfree.)
bye,
rogx.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk