Visual Studio 2015 Compilation Errors
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Similar to #15534 (closed)
I encountered the error
Severity Code Description Project File Line Error C2375 'lfind': redefinition; different linkage vtktiff C:\Program Files (x86)\Windows Kits\10\Include\10.0.10056.0\ucrt\corecrt_search.h 191
From tiffiop.h of Project vtktiff (ThirdParty/tiff/vtktiff/)
#ifdef HAVE_SEARCH_H
include <search.h>
#else extern void *lfind(const void *, const void *, size_t , size_t, int ()(const void *, const void *)); #endif
Solution according to the header of corecrt_search.h: Define HAVE_SEARCH_H
Why is this an issue? Because search.h included through stdlib.h before.
This would be the only reference to HAVE_SEARCH_H, that I could find.