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.