Compile FLTK with g++
I am working through Stroustrup's Principles and Practices using C++. I am trying to get the following program to compile. #include <FL/Fl.H> #include <FL/Fl_Box.H> #include <Fl/Fl_Window.H> int main() { Fl_Window window(200, 200, "Window title"); Fl_Box box(0,0,200,200,"Hey, I mean, Hello, World!"); window.show(); return Fl::run(); } I tried compiling it with g++ -std=c++11 trial.cpp -o trial but then it threw the following error /tmp/ccaLRS7L.o: In function `main': trial.cpp:(.text+0x26): undefined reference to `Fl_Window::Fl_Window(int, int, char const*)' trial.cpp:(.text+0x50): undefined