Hi everybody,
please bear with me as these are my first steps with FLTK and my
problems are likely to be trivial.

I've downloaded and unpacked 1.1.10rc2, I've been able to compile it
by importing the "fltk.lib.dsp" project into the Code::Blocks IDE (I'm
on WinXP).

So far so good, the static library has been correctly built and I've
been able to test it with the two wizard projects that come within
Code::Blocks, both the "simple main" one and the "fluid" one.

Notice that I have unpacked the archive in "D:\fltk-1.1.10rc2".

In order to use the static library and the headers within the
Code::Blocks wizard projects I did these steps:
- fed the above path as base path for FLTK projects
- created an "include" folder and moved the FL folder into it
- pasted the "fltk.lib" static library into the existing "lib" folder

All the above worked fine for the wizard projects.

Now I'm trying to build fluid by importing "fluid.dsp".
The compile process went fine, but I got several linking errors. Some
of them have been solved by linking it against the static FLTK library
I've previously built, but I still get linking errors:
-------
=== fluid, Win32 Release ===
fluid___\fluid\file.o:file.cxx:(.text+0x1290) undefined reference to
`Fl_Group::forms_end()'
fluid___\fluid\fluid.o:fluid.cxx:(.text+0x88a) undefined reference to
`_png_create_write_struct'
[ ... more _png_ errors snipped ... ]
fluid___\fluid\fluid.o:fluid.cxx:(.text+0x12b5) undefined reference to
`Fl_Help_Dialog::Fl_Help_Dialog()'
[ ... more Fl_Help_Dialog:: errors snipped ... ]
fluid___\fluid\fluid.o:fluid.cxx:(.text+0x4b76) undefined reference to
`fl_register_images()'
fluid___\fluid\fluid.o:fluid.cxx:(.text+0x4c6a) undefined reference to
`Fl_File_Icon::load_system_icons()'
-------

I suppose I have to build the stuff inside of the "png" folder as a
further static library and link fluid with that too, but it seems
strange that I'm getting those other "core" undefined reference errors
(Fl_group, Fl_Help_Dialog, Fl_File_Icon).

I've noticed that inside of "config.h" there is a path macro that
defaults to "C:\FLTK" - obviously this doesn't match my current
settings. Do you suggest me to change it to "D:\fltk-1.1.10rc2" or it
would be better to move all of this folder's contents into "C:\FLTK"?

Thanks for your attention,
wish you good time.

-- 
 Francesco S. Carta, http://fscode.altervista.org

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

Reply via email to