Ahmed El-Mahmoudy
-
2010-12-14
g++ -I/usr/include/GraphicsMagick -DYYDEBUG=1 -g -O2 -Wl,-Bsymbolic-functions -o drawtiming -lGraphicsMagick++ -lGraphicsMagick main.o parser.o scanner.o timing.o
main.o: In function `main':
/build/buildd/drawtiming-0.7.1/src/main.cc:101: undefined reference to `Magick::InitializeMagick(char const*)'
/build/buildd/drawtiming-0.7.1/src/main.cc:213: undefined reference to `Magick::Color::Color(char const*)'
[...]
Turns out that the problem is that the object files should be before the linked libraries. Please find the fix in the attached patch.