When building the CORE_magick project, the function InitializeCriticalSectionandSpinCount is undefined. The way to make windows define and link this function is to include this define:
Code: Select all
#define _WIN32_WINNT 0x0501
When building CORE_lcms, the function sqrtf is undefined. In lcms2_internal.h I added a define inside an existing #ifdef:
Code: Select all
// Other replacement functions
#ifdef _MSC_VER
# ifndef snprintf
# define snprintf _snprintf
# endif
# ifndef vsnprintf
# define vsnprintf _vsnprintf
# endif
//PAH Added this
#define sqrtf(x) (float)sqrt((float)x)
#endif
Code: Select all
#ifdef _MSC_VER
# ifndef vsnprintf
# define vsnprintf _vsnprintf
# endif
#endif