FLTK problem

This is my first time to use FLITK,

but there are several problems.

Following is my errors,any one can help me ?

Linking…
fltk.lib(Fl_Group.obj) : error LNK2005: “public: void __thiscall Fl_Group::end(void)” (?end@Fl_Group@@QAEXXZ) already defined in ggg.obj
ggg.obj : error LNK2001: unresolved external symbol “enum Fl_Labeltype __cdecl define_FL_SHADOW_LABEL(void)” (?define_FL_SHADOW_LABEL@@YA?AW4Fl_Labeltype@@XZ)
ggg.obj : error LNK2001: unresolved external symbol “private: virtual void __thiscall Fl_Box::draw(void)” (?draw@Fl_Box@@EAEXXZ)
fltk.lib(Fl_x.obj) : error LNK2001: unresolved external symbol __imp___TrackMouseEvent@4
Debug/ggg.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

ggg.exe - 5 error(s), 0 warning(s)

Hi, I never used the FLTK but when the debugger said there is some unresolved externals symbols it means a header is not correctly included, maybe you should try to verify that first :confused:

Hi !

The _TrackMouseEvent function is located in the comctl32.dll library so you need to link with comctl32.lib

The other message are either because you messed up something in your headers or did not link with the fltk library.

Mikael