Core_Magick Compilation

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
gailla_a
Posts: 1
Joined: 2015-04-20T01:26:05-07:00
Authentication code: 6789

Core_Magick Compilation

Post 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
Post Reply