I am trying to compile a program using CGAL and linked to Boost. When I run the linker:
g++ -Wl,-O1 -Wl,-rpath,/home/name/Qt/5.4/gcc_64 -Wl,-rpath,/home/name/Qt/5.4/gcc_64/lib -o meld main.o mainwindow.o test.o moc_mainwindow.o -lCGAL -lgmp -lmpfr -lboost_system -L/home/name/Qt/5.4/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
and get the error
main.o: In function `global constructors keyed to main.cpp':
main.cpp:(.text+0x3f): undefined reference to `boost::system::generic_category()'
What am I doing wrong? I saw a couple of answers to similar questions but none seem to work for me.