[fltk.development] Fltk with VC6 development isn'it possible?

2013-02-24 Thread Ali

Hi,

This is my first post on Fltk org,
Fltk I find it very interresting but I hope
I will implement it on my VC6 environnement.

So I downloaded fltk-1.1.4 packages with lib and includes
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


So I tested with this sample code:



#include FL/Fl.h
#include FL/Fl_Box.h
#include Fl/Fl_Window.h

int main()
{
Fl_Window window(200, 200, Window title);
Fl_Box box(0,0,200,200,Hey, I mean, Hello, World!);
window.show();
return Fl::run();
}



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 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

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 ?

Thank you very much?
___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev


Re: [fltk.development] Fltk with VC6 development isn'it possible?

2013-02-24 Thread Albrecht Schlosser
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

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


Re: [fltk.development] Fltk with VC6 development isn'it possible?

2013-02-24 Thread Albrecht Schlosser
On 24.02.2013 10:07, Ali wrote:

 This is my first post on Fltk org,

Oh, I forgot to mention: fltk.development is the wrong
forum/group for your question, please ask in fltk.general.

fltk.development is for development of the FLTK lib and not
for user questions.

Thank you.

Albrecht

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


Re: [fltk.development] Fltk with VC6 development isn'it possible?

2013-02-24 Thread Ali
 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


Re: [fltk.development] Fltk with VC6 development isn'it possible?

2013-02-24 Thread Ali

 On 24 Feb 2013, at 09:07, Ali wrote:

  I will implement it on my VC6 environnement.


 I see Albrecht has already replied, but I'd like to re-iterate some of =
 his points...=20
 See notes interleaved below:


  So I downloaded fltk-1.1.4 packages with lib and includes
  I put in my VC6:


 Where from?
 We do not distribute *any* binary blobs, only source, so the files you =
 are using can not be official ones.

 You would do far better to obtain one of our source tarballs and work =
 with that.

 Also, 1.1.4 is very, very ancient... Current is 1.3.2, which works fine =
 with VC6 if that is *really* the tool chain you want to use!

 Note that I strongly suggest you *not* use VC6 because it is also very, =
 very ancient.

 Microsoft provide much later, and better, versions of VS for free these =
 days, and they are Much Better than VC6.

 And the gcc-based MSYS/mingw toolchain works perfectly on every Windows =
 variant I've tested it on and has a much more standards compliant and =
 high-performing compiler than VC6 (currently gcc-4.7.2 I think) and is =
 free in all the useful ways.

 Just, you know, bin VC6 and get something decent!

 Then just use that to build the fltk-1.3.2 lib from source and all the =
 problems will go away!


  So the results is linking problem:

 Which seems to be telling us that the binary blobs you downloaded are =
 not compatible with VC6, if I understand things correctly!
 Really, you need to be building fltk from official sources - depending =
 on some old binary blobs is not a good idea.

 If you are having trouble building fltk from sources, then that is an =
 issue that must be addressed before you can reasonably expect to use =
 that toolchain to build anything else anyway!


 =20
  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
 =20
  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 =
 ?

 If you must stick to VC6 (and really, just don't!) then get the =
 fltk-1.3.2 source and build the fltk libs using the VC6 project that is =
 built in.

 Or switch to mingw/MSYS and never look back!





Thank you Ian I continue in general topic see you

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