What OS are you running on? I've been having the exact same problem you=20
have on my Win98 box, but the same program compiles just fine on the=20
Win2000 systems at my college. The 98 box is running Dev 4.9.8.4, and I'm=
=20
fairly certain the 2000 box is, as well.
I installed the same version of the FLTK DevPack on both systems, and I'm=
=20
using the same linker options. There are a few differences in the=20
compiler log, but I'm not entirely sure why. I've included the logs from=
=20
both compiles below. (Thanks in advance.)
-----Successful Compile----------
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\lab\My=20
Documents\rdk.programs\C++\fltk1\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\lab\My=20
Documents\rdk.programs\C++\fltk1\Makefile.win" all
g++.exe -c fltk_gui1.cpp -o fltk_gui1.o -I"C:/Program=20
Files/Dev-Cpp/include/c++" -I"C:/Program=20
Files/Dev-Cpp/include/c++/mingw32" -I"C:/Program=20
Files/Dev-Cpp/include/c++/backward" -I"C:/Program=20
Files/Dev-Cpp/include" -ansi
g++.exe fltk_gui1.o fltk_gui1_private.res -o "fltk_gui1.exe" -L"C:/Progra=
m=20
Files/Dev-Cpp/lib" -mwindows -lfltk -lole32 -luuid -lcomctl32 -lwsock32=20
-lm
Execution terminated
Compilation successful
---------------------------------
-----Failed Compile--------------
Compiler: Default compiler
Building Makefile:=20
"D:\Programming\Projects\fltk_test\fromschool\Makefile.win"
Executing make clean
rm -f fltk_gui1.o fltk_gui1_private.res fltk_gui1.exe
g++.exe -c fltk_gui1.cpp -o fltk_gui1.o -I"D:/DEV-CPP/include/c++" =20
-I"D:/DEV-CPP/include/c++/mingw32" -I"D:/DEV-CPP/include/c++/backward" =20
-I"D:/DEV-CPP/include" -ansi
windres.exe -i fltk_gui1_private.rc -I rc -o fltk_gui1_private.res -O cof=
f
g++.exe fltk_gui1.o fltk_gui1_private.res -o "fltk_gui1.exe"=20
-L"D:/DEV-CPP/lib" -mwindows -lfltk -lole32 -luuid -lcomctl32 -lwsock32=20
-lm
fltk_gui1.o(.text+0x7d):fltk_gui1.cpp: undefined reference to=20
`Fl_Window::Fl_Window(int, int, char const *)'
fltk_gui1.o(.text+0xb8):fltk_gui1.cpp: undefined reference to=20
`Fl_Group::end(void)'
fltk_gui1.o(.text+0xec):fltk_gui1.cpp: undefined reference to=20
`Fl::run(void)'
Execution terminated
---------------------------------
Aurelie.Jeunejean wrote:
> Hy,
> I have Dev-C++ 4.9.7.0 and I recently install the FLTK package (found o=
n
> http://www.bloodshed.net/dev/packages/fltk.html ).
> I try to make a simple Hello window but when I compile under Dev-Cpp I
> get those error messages :
>
> [Linker error] undefined reference to `Fl_Window::Fl_Window(int, int,
> char const*)'
> [Linker error] undefined reference to `fl_define_FL_SHADOW_LABEL()'
> ...
> [Linker error] undefined reference to `Fl_Widget::~Fl_Widget()'
>
> In the options of the compiler, I include the directory=20
> c:\Dev-Cpp\include\FL. So what do I have to do to make it work ?
>
> Thanks a lot.
|