> > On 07.12.2010, at 16:44, Austin Covello wrote: > > >>>=20 > >>> On 06.12.2010, at 20:36, Austin Covello wrote: > >>>=20 > >>>> FLTK Version 1.1.10 > >>>> =3D20 > >>>> Compiler: Microsoft Visual C++ 2008 Express > >>>> =3D20 > >>>> I'm generating compile-time errors when attempting to run your = > "Hello =3D > >>> World" example that comes with your library. When I debug, I get = > the =3D > >>> following: > >>>=20 > >>> Have you used the project files that come with the FLTK package? = > This =3D > >>> looks more like you created your own project file. If so, you must = > first =3D > >>> compile the FLTK library and then link your project file with it.=3D > >>>=20 > >>=20 > >> I compiled the FLTK library using the fltk.sln file in the VC2005 = > folder, and then the fltk.dsw file in the VisualC folder. I then added = > it to my Include and Library Directories. I've tried linking them, but = > the documentation is out of date with respect to Visual Studio (it has = > version 5.0 in mind, and the interface has changed A LOT since then), = > and I don't have much experiences importing new libraries into it, so I = > don't really know how to link it properly. > >=20 > > Scratch that. I found out how to link the libraries, but now I'm = > getting these errors. > >=20 > > Error 1 error LNK2019: unresolved external symbol = > ___wsafdis...@8 referenced in function "int __cdecl fl_wait(double)" = > (?fl_wait@@y...@z) fltkd.lib > > Error 2 error LNK2019: unresolved external symbol _sel...@20 = > referenced in function "int __cdecl fl_wait(double)" (?fl_wait@@y...@z) > = > fltkd.lib > > Error 3 error LNK2019: unresolved external symbol = > __imp___trackmouseev...@4 referenced in function "long __stdcall = > WndProc(struct HWND__ *,unsigned int,unsigned int,long)" = > (?WndProc@@YGJPAUHWND__@@i...@z) fltkd.lib > > Error 4 fatal error LNK1120: 3 unresolved externals = > C:\Users\Owner\Documents\College\C++\FLTK\HelloWorld\Debug\HelloWorld.exe > >=20 > > Unless I didn't do it properly? > > You must also link with wsock32.lib and comctl32.lib, depending on your = > configuration also with ole32.lib and uuid.lib >
It's working now. Thank you very much for your help! _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
