Hi!
Can someone help point out what I am doing wrong? I created a test source file
to test out FLTK library. I followed the README.cygwin instructions to build
and install the FLTK code on Windows XP, using Cygwin tools. After taking a
peek into the directories where the library has built I found them in:
/Cygwin/usr/local/include/fltk/compat/FL
My code has included the FLTK headers as follows:
#include <FL/Fl.h>
I haven't used the g++'s "library include" and "directory include" switches
before (according to the g++ man pages should be "-I","-l" and "-L"). I tried
giving different paths to the g++ command, but none seem to find the FLTK
files. My highest suspicion is that I'm not giving the correct path to the g++
command. So I cannot get past the compiling stage. I tried using the following
command:
g++ -Wall TestFastLiteLib.cpp -o TestFastLiteLib
-l/cygdrive/c/Cygwin/usr/local/lib/
-L/cygdrivec/Cygwin/usr/local/include/fltk/compat/
but I get compile-time errors:
TestFastLiteLib.cpp:1:19: FL/Fl.h: No such file or directory
TestFastLiteLib.cpp:2:23: FL/Fl_Box.h: No such file or directory
TestFastLiteLib.cpp:3:26: FL/Fl_Window.h: No such file or directory
TestFastLiteLib.cpp: In function `int main()':
TestFastLiteLib.cpp:7: error: `Fl_Window' undeclared (first use this function)
TestFastLiteLib.cpp:7: error: (Each undeclared identifier is reported only once
for each function it appears in.)
TestFastLiteLib.cpp:7: error: expected `;' before "window"
TestFastLiteLib.cpp:8: error: `Fl_Box' undeclared (first use this function)
TestFastLiteLib.cpp:8: error: expected `;' before "box"
TestFastLiteLib.cpp:9: error: `window' undeclared (first use this function)
TestFastLiteLib.cpp:10: error: `FI' has not been declared
TestFastLiteLib.cpp:10: error: `run' undeclared (first use this function)
Any help would be appreciated...
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk