> I think you are right since I did download the SDK but I still
> keep getting the same errors.  I think the 1.1.7 version is the
> latest download of FLTK.

Your errors are unusual in that it appears to be showing
that it's trying to link against both fltk.lib and fltkdll.dll,
causing the 'already defined' errors.

It should only be linking against one or the other, not both.

I just downloaded the lastest fltk 1.1.x to my Vista machine:
http://fltk.org/software.php?VERSION=1.1.x-r6025&FILE=fltk/snapshots/fltk-1.1.x-r6025.tar.gz

..and it built fine with both VS Express 2005 (VS8)
and the Platform SDK which was installed "correctly".

Here are the exact steps I took to build FLTK:

        1) Run VS 2005 Express

        2) File -> Open -> Project/Solution,
           then browse to the downloaded FLTK directory, then vc2005 -> fltk.sln

        3) (OPTIONAL) Change 'Debug' to 'Release'

        4) In the "Solution Explorer", highlight the "Solution 'fltk'"
           at the very top, right click and choose 'Build Solution"

Built fine, no errors at all.

BTW, to install the Platform SDK for VS Express "correctly" involves some
tricky steps that is easy to miss. You'd think installing the Platform SDK
would automatically configure itself with Visual Studio 2005 environment,
but it doesn't.

Make sure you do these steps after installing the Platform SDK:
http://msdn2.microsoft.com/en-gb/express/aa700755.aspx

Just in case that info moves away, here is the info there in a nutshell:

After installing the Platform SDK, you still need to do these things
to get VS Express to recognize and use it:

        1) Tools -> Options -> Projects and Solutions -> VC++ Directories,
           and using the "Show directories for:" chooser, adding the paths
           to the appropriate subsection:

Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 
2003 R2\Bin
   Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 
2003 R2\Include
   Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 
2003 R2\Lib

        2) Hit OK, quit out of VS Express 2005.

        3) Using Notepad or a text editor, edit the file:
           C:\Program Files\Microsoft Visual Studio 
8\VC\VCProjectDefaults\corewin_express.vsprops
           ..and change this line:

           AdditionalDependencies="kernel32.lib"

           ..to instead read:

           AdditionalDependencies="kernel32.lib user32.lib gdi32.lib 
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
uuid.lib"

        4) That's it.

           Now when you open VS Express 2005, you should be able to build
           applications normally without errors about 'windows.h' not being 
found
           and no unresolved externals for builtin Win32 functions.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to