[fltk.development] Fltk with VC6 development isn'it possible?
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?
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?
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
[fltk.development] Linking problem
I am using fltk2 on windows, using devcpp here's the complier error message Compiler: Default compiler Building Makefile: C:\Documents and Settings\Administrateur\Bureau\facedetect\Code\Makefile.win Executing make... make.exe -f C:\Documents and Settings\Administrateur\Bureau\facedetect\Code\Makefile.win all g++.exe sources/main.o -o VeseChan.exe -LC:/Dev-Cpp/lib -lfltk2 -lole32 -glut -luuid -lcomctl32 -lwsock32 -lm -Xext -Xinerama -Xft -X11 -lm c:/Program Files/OpenCV/lib/cv.lib c:/Program Files/OpenCV/lib/cvaux.lib c:/Program Files/OpenCV/lib/cvcam.lib c:/Program Files/OpenCV/lib/cxcore.lib c:/Program Files/OpenCV/lib/highgui.lib ../../../../../Dev-Cpp/lib/libfltk2_images.a ../../../../../Dev-Cpp/lib/libfltk2.a ../../../../../Dev-Cpp/lib/libfltk2_gl.a ../../../../../Dev-Cpp/lib/libfltk2_glut.a ../../../../../Dev-Cpp/lib/libwin32k.a C:/Dev-Cpp/lib/libfltk2.a(Window.o)(.text+0x132a):Window.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(Window.o)(.text+0x1351):Window.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(Window.o)(.text+0x135c):Window.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(Window.o)(.text+0x139e):Window.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(Window.o)(.text+0x1852):Window.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x9c):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0xb3):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0xf2):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x130):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x163):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x1a0):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x1b5):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x1ca):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x243):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x257):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x264):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x274):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x284):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(UpBox.o)(.text$_ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(fltk::Rectangle const) const]+0x28f):UpBox.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x2ce):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x759):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x77a):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x1d85):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x1d9c):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x2764):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x277d):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x2796):run.cxx: undefined reference to [EMAIL PROTECTED]' C:/Dev-Cpp/lib/libfltk2.a(run.o)(.text+0x27ae):run.cxx: undefined reference to [EMAIL PROTECTED]'