Installing fltk4d

anon nomail at gm.com
Sat Nov 24 17:37:26 PST 2007


I managed to build all examples from fltk4d page, but to do that I had to wrap every pragma link in 'all.d' in quotes:
         pragma(link, "fltk");
         pragma(link, "fltk_images");
etc...

AnIHiL Wrote:

> I don't have now problem with:
> main.d(1): module all cannot read file 'fltk4d\all.d'
> 
> I just change FLAGS in file sc.ini to:
> DFLAGS="-I%@P%\..\src\phobos" -Id:\d\dmd\import
> 
> But now I have another problem :)
> d:\d\dmd\import\fltk4d\all.d(341): pragma link string expected for link, not '1'
> 
> I don't understand what I should do know.
> PS:
> It's my first program in D maybe that's why i have so many problems.
> 
> Ary Borenszweig Wrote:
> 
> > AnIHiL wrote:
> > > Where I could find ".di" file ? I already checked all files that I have but none of them have .di extension. 
> > > 
> > > Robert Fraser Wrote:
> > > 
> > >> AnIHiL wrote:
> > >>> Hello,
> > >>>
> > >>> I download libraries fltk4d-win-1.1.x-r5953.zip and try to use it in my program but all the time i have:
> > >>> main.d(1): module all cannot read file 'fltk4d\all.d'
> > >>>
> > >>> I know that i should link libraries to my project but I don't know how to do it. I have files: fltk.lib and fltk.dll. I use Eclipse with Descent plugin. I already try to put fltk.lib file in dmd\lib folder but this doesn't work.
> > >>>
> > >>> Anyone can help me ?
> > >> You need an import file (a ".di" file) (similar to a C/C++ ".h" file). 
> > >> Add this to the include path when building.
> > > 
> > 
> > You need to download the source, and add it to the include path. Check 
> > the instructions below "Download": http://dronten.googlepages.com/fltk4d
> 



More information about the Digitalmars-d-learn mailing list