On 07.12.2010, at 16:44, Austin Covello wrote: >>> >>> On 06.12.2010, at 20:36, Austin Covello wrote: >>> >>>> FLTK Version 1.1.10 >>>> =20 >>>> Compiler: Microsoft Visual C++ 2008 Express >>>> =20 >>>> I'm generating compile-time errors when attempting to run your "Hello = >>> World" example that comes with your library. When I debug, I get the = >>> following: >>> >>> Have you used the project files that come with the FLTK package? This = >>> looks more like you created your own project file. If so, you must first = >>> compile the FLTK library and then link your project file with it.= >>> >> >> 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. > > Scratch that. I found out how to link the libraries, but now I'm getting > these errors. > > 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 > > 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 _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
