> On 24.02.2013 10:07, Ali wrote:
>
> > This is my first post on Fltk org,
>
> Greetings, new users are always welcome.
>
> > Fltk I find it very interresting but I hope
> > I will implement it on my VC6 environnement.
>
> Well, this is possible, but we don't recommend it.
> If you have a working VC6 solution, then you *can* do it.
>
> A better (recommended from FLTK dev's) alternative for Windows
> is MinGW, but YMMV.
>
> > So I downloaded fltk-1.1.4 packages with lib and includes
>
> Ooh, that's really, really outdated. Don't use it! Please use
> a FLTK 1.3.x release (current is 1.3.2). It's really easy to
> build it from source. You can even do it with your ancient
> VC6 environment.
>
> In FLTK 1.3, there is IDE/VisualC6/*, and this should pretty
> much work for you.
>
> If you really want to use 1.1, then look for a source distribution
> at the FLTK web site for FLTK 1.1.10:
> http://www.fltk.org/software.php
>
>
> > I put in my VC6:
> >
> > -Project -> settings -> Link:
> > fltk.lib wsock32.lib comctl32.lib fltkimages.lib
> >
> >
> > -Project -> settings -> Link:
> > fltk.lib wsock32.lib comctl32.lib fltkimages.lib
> >
> > -Tools -> Option -> Directories Includes:
> > C:\Program Files\fltk-1.1.4
> > -Tools -> Option -> Directories Library files:
> > C:\Program Files\fltk-1.1.4\lib
>
> Well, usually order matters (I don't know for sure for
> Windows/VC). If it does, you should fltkimages.lib and
> fltk.lib first (in this order), then all the Windows libs.
>
> > So I tested with this sample code:
>
> [simple hello world code removed]
>
> > So the results is linking problem:
> >
> > Linking...
> > fltk.lib(Fl_Pixmap.obj) : error LNK2001: unresolved external symbol __ftol2
> > fltk.lib(Fl_Image.obj) : error LNK2001: unresolved external symbol __ftol2
> > fltk.lib(fl_arci.obj) : error LNK2001: unresolved external symbol __ftol2
> > fltk.lib(fl_vertex.obj) : error LNK2001: unresolved external symbol __ftol2
> > fltk.lib(Fl_x.obj) : error LNK2001: unresolved external symbol __ftol2
> > fltk.lib(fl_color.obj) : error LNK2001: unresolved external symbol __ftol2
> > fltk.lib(Fl_get_system_colors.obj) : error LNK2001: unresolved external 
> > symbol __ftol2
> > fltk.lib(fl_draw.obj) : error LNK2001: unresolved external symbol __ftol2
> > Release/prj_win32cons_fltk.exe : fatal error LNK1120: 1 unresolved externals
> > Error executing link.exe.
> >
> > prj_win32cons_fltk.exe - 9 error(s), 0 warning(s)
>
> I have no idea why __ftol2 is undefined. This is probably resulting
> from the package you're using. We strongly recommend compiling FLTK
> from the original source download package.
>
> FWIW: google finds some answers if you enter __ftol2. Among others
> someone mentioned that ftol2 is a new function in VC7 (sic !).
> You may not want to use a (pre-compiled) package from VC7 with your
> VC6 environment.
>
> > I know that there is a VC6 ide directories on some packages of
> > Fltk but I must compil fltk.dsw projects and there are severals errors
>
> If you're using FLTK 1.3, then it ought to work. If not, please ask
> here with specific error messages.
>
> > So I think there is a way without using an existing dsw project,
> > Could you help me to link correctly my little Fltk program with VC++6 ?
>
> Please take a look at these FLTK 1.3 files:
>    ...fltk_root/README.MSWindows.txt
> and
>    ...fltk_root/IDE/README.IDE
>
> and if this doesn't help, feel free to ask again.
>
> Albrecht
>

Thank you Albrecht for your good advices so I continue in general to not 
disturb anyone see you..

_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to