On 17 Mar 2007, at 0:56, saeed jellouli wrote:
> I finally was able to build fltk2 using MSYS under windows, but I  
> am still having a little problem: I am trying to use an Dev-Cpp  
> IDE, I created a project, set the directories paths properly, wrote  
> a small program, added manually the following libraries to the linker:
> fltk2 msimg32 ole32 uuid comctl32 wsock32 supc++
> but I still have the following linking errors:
>   [Linker error] undefined reference to `IID_IUnknown'
>   [Linker error] undefined reference to `IID_IDropTarget'
> does someone please know what's going on?
> Thanks a lot for your help.

I don't have fltk2 on an XP box here, but I'd guess that your linker  
line is wrong.
Note that the linker line depends not only on which libraries you  
list, but also what order you list them in (libraries that provides a  
function must be listed after things that use that function, or the  
linker might think nothing needs that function and leave it out...)

So, from your msys shell, what does "fltk2-config --ldflags" report?  
That should tell the libraries you need, and a suitable order to put  
them in.
I doubt supc++ is needed these days, by the way - what version of gcc  
are you using?



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

Reply via email to