and I got the error C1021: invalid preprocessor command 'warning'
any idea what could this mean?
1 2 3 4 5
#if !defined(MAGICKCORE_QUANTUM_DEPTH) && defined(MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H)
# warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
# warning "this is an obsolete behavior please fix your makefile"
# define MAGICKCORE_QUANTUM_DEPTH MAGICKCORE_QUANTUM_DEPTH_OBSOLETE_IN_H
I did not write the code, this is in the magick-config.h
Your compiler doesn't recognize #warning as a valid preprocessor command.
You could try a couple of things:
1) Define MAGICKCORE_QUANTUM_DEPTH. That should cause the compiler to skip lines 2 and 3.
2) You could try changing #warning to #error #error is probably more widely recognized by compilers.