1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Cannot build StreamDevice on Windows 64bit |
From: | Ralph Lange via Tech-talk <tech-talk at aps.anl.gov> |
To: | EPICS Tech Talk <tech-talk at aps.anl.gov> |
Date: | Thu, 9 Sep 2021 14:13:15 +0200 |
C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:113:15: error: conflicting declaration of 'int strncasecmp(const char*, const char*, size_t)' with 'C' linkage
113 | int __cdecl strncasecmp (const char *, const char *, size_t);
| ^~~~~~~~~~~
../ChecksumConverter.cc:50:12: note: previous declaration with 'C++' linkage
50 | static int strncasecmp(const char *s1, const char *s2, size_t n)
| ^~~~~~~~~~~
In file included from ../StreamBuffer.h:26,
from ../StreamFormatConverter.h:27,
from ../ChecksumConverter.cc:58:
C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:116:28: error: redefinition of 'int strncasecmp(const char*, const char*, size_t)'
116 | __CRT_INLINE int __cdecl strncasecmp (const char *__sz1, const char *__sz2, size_t __sizeMaxCompare) { return _strnicmp (__sz1, __sz2, __sizeMaxCompare); }
| ^~~~~~~~~~~
../ChecksumConverter.cc:50:12: note: 'int strncasecmp(const char*, const char*, size_t)' previously defined here
50 | static int strncasecmp(const char *s1, const char *s2, size_t n)
| ^~~~~~~~~~~
#if defined(vxWorks) || defined(_WIN32) || defined(__rtems__)// These systems have no strncasecmpstatic int strncasecmp(const char *s1, const char *s2, size_t n)