> doing in the way you say (using the shell for MinGW - Simulates the unix
> environment):
> 
> $ fltk-config --compile hello.cxx
> 
> I get a series of errors, for simplicity carry one of them:
> 
> g++.exe -IC:/MinGW/FLTK/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -o 'hello' 'hello.cxx' C:/MinGW/FLTK/lib/libfltk.a
> C:/MinGW/FLTK/lib/libfltk.a(Fl.cxx.obj):Fl.cxx:(.text+0x2db): undefined
> reference to `OleUninitialize@0'
> 
> What should I do?


Something is really, seriously, broken in your installation: fltk-config is not 
returning *any* of the runtime libraries you need to make your code compile, 
beyond fltk itself, so this will never work.

Here's what I get, on a Windows machine in an Msys shell:

$ fltk-config --compile hide.cxx
g++ -I/d/IanMacarthur/svn/fltk-1.3 -I/d/IanMacarthur/svn/fltk-1.3/png 
-I/d/IanMacarthur/svn/fltk-1.3/zlib -I/d/IanMacarthur/svn/fltk-1.3/jpeg 
-mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -o 
'hide' 'hide.cxx' -mwindows /d/IanMacarthur/svn/fltk-1.3/lib/libfltk.a -lole32 
-luuid -lcomctl32


As you can see, there are a great many Windows libraries being passed here, 
including ole32  (see the -lole32) which is needed for your code.

I can only think that your installation of fltk, or maybe of mingw/msys itself, 
is incomplete in some way.

Try rebuilding the fltk libs from scratch in the Msys shell, and see what 
happens - just cd into the fltk build tree, then do:

        make clean
        make

And see if that builds all the test folder items correctly, and see if 
fltk-config then works as it ought to...



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to