Hello everyone,
i have a problem,
i want to use FLTK in visual studio 2010. I installt it correctly, I copied the .lib files into the lib folder and the FL folder into the include folder in my Visual studio 2010 directory. My problem is when i compile the folowing code to see if everything works i get these errors:
#include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/FL_Window.h> int main(){ Fl_Window w(200, 200, "title"); Fl_Box b(0, 0, 200, 200, "Hie"); w.show(); return Fl::run();}
1>------ Build started: Project: testGUI+, Configuration: Debug Win32 ------1>Build started 13.06.2010 11:45:01.1>InitializeBuildStatus:1> Touching "DebugtestGUI+.unsuccessfulbuild".1>ClCompile:1> All outputs are up-to-date.1>ManifestResourceCompile:1> All outputs are up-to-date.1>fltkd.lib(Fl.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_Display_Device::device_type" (?device_type@Fl_Display_Device@@2PBDB)1>fltkd.lib(Fl_Double_Window.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_Display_Device::device_type" (?device_type@Fl_Display_Device@@2PBDB)1>fltkd.lib(Fl.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_GDI_Graphics_Driver::device_type" (?device_type@Fl_GDI_Graphics_Driver@@2PBDB)1>fltkd.lib(Fl.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Surface_Device::set_current(void)" (?set_current@Fl_Surface_Device@@UAEXXZ)1>fltkd.lib(fl_draw_image.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)1>fltkd.lib(Fl_Double_Window.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)1>fltkd.lib(fl_rect.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)1>fltkd.lib(fl_font.obj) : error LNK2019: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB) referenced in function "class Fl_Font_Descriptor * __cdecl find(int,int,int)" (?find@@YAPAVFl_Font_Descriptor@@HHH@Z)1>fltkd.lib(Fl_Bitmap.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)1>fltkd.lib(Fl_Pixmap.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)1>C:UsersDaniidocumentsvisual studio 2010ProjectstestGUI+DebugtestGUI+.exe : fatal error LNK1120: 4 unresolved externals1>1>Build FAILED.1>1>Time Elapsed 00:00:00.18 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
im sorry if this has been explained before.. i couldnt find anything..
Red&Black