Can't compile

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jpiquemal
Posts: 54
Joined: 2003-12-07T01:57:19-07:00

Can't compile

Post by jpiquemal »

Hello
I can't compile anymore IM, i get lots of errors:
__FUNCTION__ :undeclared identifier

(VC6)
jpiquemal
Posts: 54
Joined: 2003-12-07T01:57:19-07:00

Re: Can't compile

Post by jpiquemal »

If somebody has the same problem:
to fix i modified the file log.h.
[color=#BF0000]before:[/color]

#if !defined(GetMagickModule)
# define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
#endif

[color=#BF0000]after:[/color]

#if !defined(GetUnadornedModuleName)
# if (((defined(__cplusplus) || defined(c_plusplus)) && defined(HAS_CPP__func__)) || \
(!(defined(__cplusplus) || defined(c_plusplus)) && defined(HAS_C__func__)))
# define GetUnadornedModuleName() (__func__)
# elif defined(_VISUALC_) && defined(__FUNCTION__)
# define GetUnadornedModuleName() (__FUNCTION__)
# else
# define GetUnadornedModuleName() ("unknown")
# endif
#endif
#if !defined(GetMagickModule)
# define GetMagickModule() \
__FILE__,GetUnadornedModuleName(),(unsigned long) __LINE__
#endif

(it comes from the previous IM version)
Post Reply