> Shane.Hill.dsto.defence.gov wrote:
> > I just did a usual update to my Cygwin distribution and now I can't seem
> > to be able to link any of my Fltk code and the Fltk source itself.
> >  undefined reference to `_IID_IUnknown'
> >  undefined reference to `_IID_IDropTarget'
> > [..]
> >
> > Most unusual. I have not found many references to these items on the web. 
> > Any thoughts?
>
>       Which version of FLTK is this? 1.1.9, 1.1.10, 1.3.x..?
>       If 1.3.x, which SVN version or tar snapshot?
>
>       Sounds like the microsoft uuid.lib is not being linked in during
>       the linking of fluid. FLTK libs built OK though.
>
>       The fact the FLTK default makefile is not including this makes me think
>       either something's wrong with the cygwin makefiles, or possibly you 
> might
>       have a mixed codebase somehow.
>
>       To see what FLTK's link line looks like (since it's hidden by default),
>       try commenting out the .SILENT line from the fltk makeinclude file, and
>       then run 'make' again, and it should show the link line that's failing.
>
>       From that we can probably tell what's missing.


I'm running Fltk 1.1.10. I've removed the .SILENT and the output is below. 
There is a -luuid entry. Is it on the wrong place?

$ make
for dir in  src fluid test documentation; do\
                echo "=== making $dir ===";\
                (cd $dir; make ) || exit 1;\
        done
=== making src ===
make[1]: Entering directory `/home/hills/tmp/fltk-1.1.10/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/hills/tmp/fltk-1.1.10/src'
=== making fluid ===
make[1]: Entering directory `/home/hills/tmp/fltk-1.1.10/fluid'
echo Linking fluid.exe...
Linking fluid.exe...
g++-3  -O3 -Wall -Wunused -Wno-format-y2k  -fno-exceptions -fno-strict-aliasing 
-mwindows -L/usr/local/mingw/lib -mno-cygwin -o fluid.exe CodeEditor.o 
Fl_Function_Type.o Fl_Group_Type.o Fl_Menu_Type.o Fl_Type.o Fl_Widget_Type.o 
Fl_Window_Type.o Fluid_Image.o about_panel.o align_widget.o alignment_panel.o 
code.o factory.o file.o fluid.o function_panel.o template_panel.o undo.o 
widget_panel.o ../lib/libfltk_forms.a ../lib/libfltk.a ../lib/libfltk_images.a 
../lib/libfltk.a -L../lib -lpng -lz -ljpeg  -ldl  -lole32 -luuid -lcomctl32 
-lwsock32
./lib/libfltk.a(fl_dnd.o):fl_dnd.cxx:(.text$_ZN12FLDropTarget14QueryInterfaceERK5_GUIDPPv+0x16):
 undefined reference to `_IID_IUnknown'
./lib/libfltk.a(fl_dnd.o):fl_dnd.cxx:(.text$_ZN12FLDropTarget14QueryInterfaceERK5_GUIDPPv+0x2d):
 undefined reference to `_IID_IDropTarget'
./lib/libfltk.a(fl_dnd.o):fl_dnd.cxx:(.text$_ZN12FLDropSource14QueryInterfaceERK5_GUIDPPv+0x16):
 undefined reference to `_IID_IUnknown'
./lib/libfltk.a(fl_dnd.o):fl_dnd.cxx:(.text$_ZN12FLDropSource14QueryInterfaceERK5_GUIDPPv+0x2d):
 undefined reference to `_IID_IDropSource'
./lib/libfltk.a(fl_dnd.o):fl_dnd.cxx:(.text$_ZN12FLDataObject14QueryInterfaceERK5_GUIDPPv+0x16):
 undefined reference to `_IID_IUnknown'
./lib/libfltk.a(fl_dnd.o):fl_dnd.cxx:(.text$_ZN12FLDataObject14QueryInterfaceERK5_GUIDPPv+0x2d):
 undefined reference to `_IID_IDataObject'
collect2: ld returned 1 exit status
make[1]: *** [fluid.exe] Error 1
make[1]: Leaving directory `/home/hills/tmp/fltk-1.1.10/fluid'
make: *** [all] Error 1

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

Reply via email to