On 18 Jul 2007, at 17:34, Mohamed Ali Charmi wrote:
> g++.exe sources/main.o -o "VeseChan.exe" -L"C:/Dev-Cpp/lib" -
> lfltk2 -lole32 -glut -luuid -lcomctl32 -lwsock32 -lm -Xext -
> Xinerama -Xft -X11 -lm "c:/Program Files/OpenCV/lib/cv.lib" "c:/
> Program Files/OpenCV/lib/cvaux.lib" "c:/Program Files/OpenCV/lib/
> cvcam.lib" "c:/Program Files/OpenCV/lib/cxcore.lib" "c:/Program
> Files/OpenCV/lib/highgui.lib" ../../../../../Dev-Cpp/lib/
> libfltk2_images.a ../../../../../Dev-Cpp/lib/
> libfltk2.a ../../../../../Dev-Cpp/lib/libfltk2_gl.a ../../../../../
> Dev-Cpp/lib/libfltk2_glut.a ../../../../../Dev-Cpp/lib/libwin32k.a
Where did you get that link line from?
That looks very, very odd - these three items "-Xext -Xinerama -Xft -
X11" are only for use on X-windows systems.
And you link order looks wrong anyway - most compilers, gcc among
them, are sensitive to the order in which things are linked, so that
libraries which use a function ore service must be listed before the
library which provides it.
So you need a link order which is (broadly):
<your code> <extra libs> <system libs>
As a specific example, libfltk_gl should be linked *beofre* the main
fltk lib, and so on.
That's not the order you have... Try:
g++.exe sources/main.o -o "VeseChan.exe" -L"C:/Dev-Cpp/lib" "c:/
Program Files/OpenCV/lib/cv.lib" "c:/Program Files/OpenCV/lib/
cvaux.lib" "c:/Program Files/OpenCV/lib/cvcam.lib" "c:/Program Files/
OpenCV/lib/cxcore.lib" "c:/Program Files/OpenCV/lib/
highgui.lib" ../../../../../Dev-Cpp/lib/
libfltk2_images.a ../../../../../Dev-Cpp/lib/
libfltk2_glut.a ../../../../../Dev-Cpp/lib/
libfltk2_gl.a ../../../../../Dev-Cpp/lib/libfltk2.a ../../../../../
Dev-Cpp/lib/libwin32k.a -lfltk2 -lole32 -glut -luuid -lcomctl32 -
lwsock32 -lm
And see if that is better.
Also - for future reference - this list is intended for development
*of* the fltk library. Questions about *using* the fltk libraries are
better directed to fltk.general, you are more likely to get feedback
there in a timely fashion.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev