I found the problem, it was the changed form of the Additional Dependencies line, in MSVC++ 2010. It should look like this: fltk.lib;wsock32.lib;comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
Sorry for the fast post. On 18 April 2011 20:53, Zoltán Lengyel <katzleng...@gmail.com> wrote: > Hi, > I have trouble getting my compiled lib-s working on MSVC++ 2010. > > Here's what I do: > - Downloaded a new release, that has an ide\VisualC2010 folder > (fltk-1.3.x-r8570). > - The whole solution builds without errors and warnings. > - I make a new Win32 project, and add the following dependencies: > fltk.lib;fltkforms.lib;fltkimages.lib;wsock32.lib;comctl32.lib > - And I use the following test: > > #include <FL/Fl.H> > #include <FL/Fl_Window.H> > int main() > { > Fl_Window win(300,200,"ablak?"); > > Fl::run(); > } > > Here's a few of the hundreds of errors that happens: > > 1>------ Build started: Project: VC2010-FLTK-test, Configuration: Debug > Win32 ------ > 2>------ Build started: Project: from_empty, Configuration: Debug Win32 > ------ > 2> main.cpp > 2>c:\program files\microsoft visual studio 10.0\vc\include\fl\xutf8.h(33): > fatal error C1083: Cannot open include file: 'X11/X.h': No such file or > directory > 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other > libs; use /NODEFAULTLIB:library > 1>fltk.lib(Fl.obj) : error LNK2019: unresolved external symbol > __imp__OleInitialize@4 referenced in function "void __cdecl > fl_OleInitialize(void)" (?fl_OleInitialize@@YAXXZ) > 1>fltk.lib(Fl.obj) : error LNK2019: unresolved external symbol > __imp__GdiFlush@0 referenced in function "public: static void __cdecl > Fl::flush(void)" (?flush@Fl@@SAXXZ) > 1>fltk.lib(Fl_Printer.obj) : error LNK2019: unresolved external symbol > __imp__DeleteObject@4 referenced in function "public: virtual void > __thiscall Fl_PostScript_Graphics_Driver::loop(int,int,int,int,int,int)" > (?loop@Fl_PostScript_Graphics_Driver@@UAEXHHHHHH@Z) > 1>fltk.lib(Fl_Double_Window.obj) : error LNK2001: unresolved external > symbol __imp__DeleteObject@4 > 1>fltk.lib(fl_read_image.obj) : error LNK2001: unresolved external symbol > __imp__DeleteObject@4 > > 1>fltk.lib(fl_arci.obj) : error LNK2001: unresolved external symbol > __imp__SelectObject@8 > 1>fltk.lib(Fl_Double_Window.obj) : error LNK2001: unresolved external > symbol __imp__SelectObject@8 > 1>fltk.lib(fl_read_image.obj) : error LNK2001: unresolved external symbol > __imp__SelectObject@8 > > Fl_Native_File_Chooser::showdir(void)" (?showdir@Fl_Native_File_Chooser > @@AAEHXZ) > 1>fltk.lib(fl_read_image.obj) : error LNK2019: unresolved external symbol > __imp__GetDIBits@28 referenced in function "unsigned char * __cdecl > fl_read_image(unsigned char *,int,int,int,int,int)" (?fl_read_image@ > @YAPAEPAEHHHHH@Z) > 1>fltk.lib(Fl_grab.obj) : error LNK2019: unresolved external symbol > __imp__SetActiveWindow@4 referenced in function "public: static void > __cdecl Fl::grab(class Fl_Window *)" (?grab@Fl@@SAXPAVFl_Window@@@Z) > 1>H:\_katzworks\_C_C++\_FUN++_\FLTK\VC2010-FLTK-test\Debug\VC2010-FLTK-test.exe > : fatal error LNK1120: 136 unresolved externals > ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ========== > > By the way, I have been using MSVC++ 2008 since now, and had no problems. > > I would be glad for any advice, what may I do wrong. > > Thanks, > katz > > _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk