I guess I should have also said I was also using fltk2 as a shared library. So 
when the FL_SHARED flag is set and linked against fltk2dll.lib I get the 
following link errors:

main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) 
public: virtual __thiscall fltk::FillSlider::~FillSlider(void)" ([EMAIL 
PROTECTED]@@[EMAIL PROTECTED]) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) 
public: __thiscall fltk::FillSlider::FillSlider(int,int,int,int,char const *)" 
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z) referenced in function _main


Of course this is because the FillSlider header is never including by a .cxx 
when the shared library is compiled so it's never exported.

Craig



> > I want a filled slider i.e a progress bar,
> > and although there is a FillSlider.h there is no corresponding 
> > FillSlider.cxx.
>
>       Does it need one?
>
> > Any thoughts or work around suggestions.
>
>       I think you just #include the file.
>       You don't have to worry about the cxx.
>
>       I just built the following.. seems to work fine.
>
> #include <fltk/run.h>
> #include <fltk/Window.h>
> #include <fltk/FillSlider.h>
> int main() {
>     fltk::Window win(720,486);
>     win.begin();
>         fltk::FillSlider prog(10,10,200,25, "Progress");
>         prog.value(0.75);
>     win.end();
>     win.show();
>     return(fltk::run());
> }

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to