Problems linking ImageMagic.h, syntax error: ssize_t
Posted: 2012-01-07T19:46:10-07:00
Hi everyone,
I new to ImageMagick and was hoping to start working with it, but when I tried to link ImageMagick.h, a series of errors come up during building, all relating to ssize_t.
I am currently working with c++ in visual studio 2010, on windows 7. I am trying to work with the source code for ImageMagick-6.7.4-4. My code at the moment is just:
#include "magick\ImageMagick.h"
int main()
{
return 0;
}
The errors that come up during building are of the form:
error C201: syntax error indentifier 'ssize_t'
error C2086: 'const int size_t' : redefinition
IntelliSense: identifier "ssize_t" is undefined
and these repeat for various files such as delegate.h, deprecate.h, etc...
Does anyone have an idea what might be causing these errors, and possible fixes?
Thanks,
I new to ImageMagick and was hoping to start working with it, but when I tried to link ImageMagick.h, a series of errors come up during building, all relating to ssize_t.
I am currently working with c++ in visual studio 2010, on windows 7. I am trying to work with the source code for ImageMagick-6.7.4-4. My code at the moment is just:
#include "magick\ImageMagick.h"
int main()
{
return 0;
}
The errors that come up during building are of the form:
error C201: syntax error indentifier 'ssize_t'
error C2086: 'const int size_t' : redefinition
IntelliSense: identifier "ssize_t" is undefined
and these repeat for various files such as delegate.h, deprecate.h, etc...
Does anyone have an idea what might be causing these errors, and possible fixes?
Thanks,