OS X Magic++ problems
Posted: 2008-06-11T16:09:14-07:00
I'm using Eclipse as an IDE for writing something in C++
It's procedural C++, as I didn't want to add learning C++ objects to learning C++
I've had ImageMagick installed and working for ages.
However, the Magick++ libs don't seem to be working.
When I try to build the project, the following gcc invocation occurs
which is what resulted in working code before I added the Magick++ stuff
Following the gcc invocation, there are two reported errors:
I've read the 'gentle introduction to Magick++' and I tried to follow its pattern, but it doesn't seem to have helped.
Any help would be appreciated.
It's procedural C++, as I didn't want to add learning C++ objects to learning C++
I've had ImageMagick installed and working for ages.
However, the Magick++ libs don't seem to be working.
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <Magick++.h>
// added argc and argv, as per recommendation on Magick++ homepage
int main( int /*argc*/, char ** argv)
{
InitializeMagick(argv);
Image imGeometry(w, h), "black");
return 0;
}
Code: Select all
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"project.d" -MT"project.d" -o"project.o" "../project.cpp"
Following the gcc invocation, there are two reported errors:
Code: Select all
../project.cpp:109: error: 'InitializeMagick' was not declared in this scope
../project.cpp:116: error: 'Image' was not declared in this scope
Any help would be appreciated.