Linking libraries in CDT [message #494201] |
Thu, 29 October 2009 14:56 |
Justin Messages: 3 Registered: October 2009 |
Junior Member |
|
|
Hi all,
I am new to CDT, and would like to develop FlTk and OpenGL in CDT on a Windows machine.
I've written a very simple window class and I am recieving the follwing errors:
g++ -LC:\fltk-1.1.7\lib_CS559 -oFLTK_Window.exe main.o MyWindow.o
main.o: In function `main':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../main.cpp:14: undefined reference to `Fl_Window::show()'
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../main.cpp:17: undefined reference to `Fl::run()'
MyWindow.o: In function `ZN8MyWindowC2EiiPc':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::Fl_Window(int, int, char const*)'
MyWindow.o: In function `ZN8MyWindowC1EiiPc':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::Fl_Window(int, int, char const*)'
MyWindow.o: In function `ZN8MyWindowD2Ev':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:17: undefined reference to `Fl_Window::~Fl_Window()'
MyWindow.o: In function `ZN8MyWindowD1Ev':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:17: undefined reference to `Fl_Window::~Fl_Window()'
MyWindow.o: In function `ZN8MyWindowD0Ev':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:17: undefined reference to `Fl_Window::~Fl_Window()'
MyWindow.o: In function `ZN8MyWindowC2EiiPc':
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::draw()'
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::handle(int)'
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::resize(int, int, int, int)'
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::flush()'
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::show()'
C:/Users/ELOY06271/Eclipse Workspace/FLTK_Window/Debug/../MyWindow.cpp:13: undefined reference to `Fl_Window::hide()'
collect2: ld returned 1 exit status
Which is a bunch of undefined reference to various functions used by the constructor for a Window in FlTk. Correct me if I'm wrong, but this means there is an issue with linking the required libraries?
In project->properties->settings I go to the MinGW C++ Linker, click libraries and in the -L text area I have entered the area where the fltkdll and fltkdlld libraries are stored.
Any suggestions?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02223 seconds