Page 1 of 1

Core_Magick Compilation

Posted: 2015-04-20T01:31:33-07:00
by gailla_a
Hi all,

I have this type of error a hundred times when i'am compiling Core_Magick to create Core_DB_magick_.lib in VisualMT solution of ImageMagick :

Error C2061 : syntax erorr : identifier 'abs',
Error C2061 : syntax erorr : identifier 'acos',
etc ...

All errors come from cmath.

- I use Visual Studio 2013 Community on windows 7.

Code: Select all

// cmath standard header
#pragma once
#ifndef _CMATH_
#define _CMATH_
#include <yvals.h>

#ifdef _STD_USING
 #undef _STD_USING
  #include <math.h>

  #include <xtgmath.h>

 #define _STD_USING

#else /* _STD_USING */
 #include <math.h>

 #include <xtgmath.h>
#endif /* _STD_USING */

 #if _GLOBAL_USING && !defined(RC_INVOKED)
_STD_BEGIN
using _CSTD abs; using _CSTD acos; using _CSTD asin;
using _CSTD atan; using _CSTD atan2; using _CSTD ceil;
....
Does someone get the same type of error and have a solution ?

Thanks for your help.

gailla_a