trying to compile with gcc in unix, having problems
Posted: 2007-03-20T10:13:56-07:00
Hi,
I am trying to compile a program that I know works, in unix using gcc compiler. after reading a lot, it seems that I have to use the Magick++-config -- commands. I tried this:
g++ -o im images.cpp 'Magick++-config --cppflags --cxxflags --ldflags --libs' -lGL -lglut
also tried it with c++ instead of g++
but got the error that Magick++-config --cppflags --cxxflags --ldflags --libs does not exist.
I can just run these commands seperately not inside the compile command and they do exist.
Is there a different way I should be compiling?
please help!!
Thanks
Josh
I am trying to compile a program that I know works, in unix using gcc compiler. after reading a lot, it seems that I have to use the Magick++-config -- commands. I tried this:
g++ -o im images.cpp 'Magick++-config --cppflags --cxxflags --ldflags --libs' -lGL -lglut
also tried it with c++ instead of g++
but got the error that Magick++-config --cppflags --cxxflags --ldflags --libs does not exist.
I can just run these commands seperately not inside the compile command and they do exist.
Is there a different way I should be compiling?
please help!!
Thanks
Josh