FLTK logo

Re: Re: Can't Build an FLTK App Using Visual C++ 6.0

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Can't Build an FLTK App Using Visual C++ 6.0 RichardS Feb 13, 2006  
 
Success!!!!

As it turned out I had two issues.

First, to get demo to build, along with the other test problems requiring the dll libraries, I copied the fltkdll.dll & fltkdlld.dll files from the fltk-1.1.7\visualc directory to the C:\WINDOWS\system32 directory and rebuilt fltk (I really only needed to build the tests problems which needed the dll files).  Demo and the other example problems requiring dll work now.

Second, to get a fltk application to build in VC6 I made the following Project Settings changes:
1. Under C/C++ tab, "Code Generation" Category, set the "Use run-time library:" to "Multithreaded DLL"
2. Under C/C++ tab, "Preprocessor" Category, enter in "Additional include directories:" the text "C:\fltk-1.1.7" (That's where my fltk installation is)
3. Under Link tab, "General" category, enter in "Object/library modules" the text "fltk.lib wsock32.lib comctl32.lib"
4. Under Link tab, "Input" Category, enter in "Additional library path:" the text "C:\fltk-1.1.7\lib"
I should have figured this one out earlier after having watched Erco's excellent FLTK video tutorial, but I couldn't make the translation from his VC.net demonstration to my VC6 Project Settings.

Thank you to all who have responded to my inquiries.  This is a great forum!

Now I'm ready to do some real fltk gui developing!

RichardS




> OK sorry, once again
>
> - it sometimes happens (the fltk dll import lib is added by msdev). You
> can see it if you look into the project settings, where all of the
> command line options are shown.. Also happens with vc7.
>
> - at some time the projects should be cleaned up, but I do not think its
>    a high prio. fltk1.1.6 was _really_ broken in that sense :-)
>
> Cheers , bye


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.