Remove this ad

Lead

Apr 22 14 3:10 PM

Tags : :

trying to compile wxwidgets svn and amule svn

i get "error: call to 'wcspbrk' is ambiguous" when compiling amule svn

wxwidgets svn compiles fine

mac os x 10.9 mavericks

does anybody know help?
Quote    Reply   
Remove this ad
Remove this ad

#2 [url]

Apr 25 14 8:12 PM

Re: error: call to 'wcspbrk' is ambiguous

[code]/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in intl
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in docs
Making all in man
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
Making all in libs
Making all in common
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT FileFunctions.o -MD -MP -MF .deps/FileFunctions.Tpo -c -o FileFunctions.o FileFunctions.cpp
mv -f .deps/FileFunctions.Tpo .deps/FileFunctions.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT Format.o -MD -MP -MF .deps/Format.Tpo -c -o Format.o Format.cpp
mv -f .deps/Format.Tpo .deps/Format.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT MD5Sum.o -MD -MP -MF .deps/MD5Sum.Tpo -c -o MD5Sum.o MD5Sum.cpp
mv -f .deps/MD5Sum.Tpo .deps/MD5Sum.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT MuleDebug.o -MD -MP -MF .deps/MuleDebug.Tpo -c -o MuleDebug.o MuleDebug.cpp
MuleDebug.cpp:558:13: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (count >= n) {
~~~~~ ^ ~
1 warning generated.
mv -f .deps/MuleDebug.Tpo .deps/MuleDebug.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT Path.o -MD -MP -MF .deps/Path.Tpo -c -o Path.o Path.cpp
mv -f .deps/Path.Tpo .deps/Path.Po
gcc -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -MT strerror_r.o -MD -MP -MF .deps/strerror_r.Tpo -c -o strerror_r.o strerror_r.c
mv -f .deps/strerror_r.Tpo .deps/strerror_r.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT StringFunctions.o -MD -MP -MF .deps/StringFunctions.Tpo -c -o StringFunctions.o StringFunctions.cpp
mv -f .deps/StringFunctions.Tpo .deps/StringFunctions.Po
g++ -DHAVE_CONFIG_H -I. -I../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT TextFile.o -MD -MP -MF .deps/TextFile.Tpo -c -o TextFile.o TextFile.cpp
mv -f .deps/TextFile.Tpo .deps/TextFile.Po
rm -f libmulecommon.a
ar cru libmulecommon.a FileFunctions.o Format.o MD5Sum.o MuleDebug.o Path.o strerror_r.o StringFunctions.o TextFile.o
ranlib libmulecommon.a
Making all in ec
./file_generator.pl . abstracts/ECTagTypes.abstract abstracts/ECCodes.abstract;
Parsing 2 files
FileName: ECTagTypes
FileContent: EC tag types for use on the ec library.
Reading content section...
Datatype: Enum
Dataname: ECTagTypes
DataType: uint8
No more content sections
All info parsed
FileName: ECCodes
FileContent: EC codes and type definition.
Reading content section...
Datatype: TypeDef
Reading content section...
Datatype: Enum
Dataname: ProtocolVersion
DataType: uint16
Reading content section...
Datatype: Enum
Dataname: ECFlags
DataType: uint32
Reading content section...
Datatype: Enum
Dataname: ECOpCodes
DataType: uint8
Reading content section...
Datatype: Enum
Dataname: ECTagNames
DataType: uint16
Reading content section...
Datatype: Enum
Dataname: EC_DETAIL_LEVEL
DataType: uint8
Reading content section...
Datatype: Enum
Dataname: EC_SEARCH_TYPE
DataType: uint8
Reading content section...
Datatype: Enum
Dataname: EC_STATTREE_NODE_VALUE_TYPE
DataType: uint8
Reading content section...
Datatype: Enum
Dataname: EcPrefs
DataType: uint32
No more content sections
All info parsed
echo abstracts/ECTagTypes.abstract abstracts/ECCodes.abstract > ECGeneratedFiles
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in cpp
gcc ../../../../src/utils/mkFileSum.c -o mkFileSum
-n Generating ECVersion.h...
created.
/Library/Developer/CommandLineTools/usr/bin/make all-am
g++ -DHAVE_CONFIG_H -I. -I../../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I../../../../src -I../../../../src/libs -I../../../../src/include -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT ECTag.o -MD -MP -MF .deps/ECTag.Tpo -c -o ECTag.o ECTag.cpp
mv -f .deps/ECTag.Tpo .deps/ECTag.Po
g++ -DHAVE_CONFIG_H -I. -I../../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I../../../../src -I../../../../src/libs -I../../../../src/include -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT ECPacket.o -MD -MP -MF .deps/ECPacket.Tpo -c -o ECPacket.o ECPacket.cpp
mv -f .deps/ECPacket.Tpo .deps/ECPacket.Po
g++ -DHAVE_CONFIG_H -I. -I../../../.. -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -DUSE_WX_EXTENSIONS -I../../../../src -I../../../../src/libs -I../../../../src/include -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/usr/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -I/Users/user/Desktop/wxWidgets/lib/wx/include/osx_cocoa-unicode-3.1 -I/Users/user/Desktop/wxWidgets/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -MT ECSocket.o -MD -MP -MF .deps/ECSocket.Tpo -c -o ECSocket.o ECSocket.cpp
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:577:14: error: call to 'wcsstr' is ambiguous
{ return wxCRT_StrstrW(haystack, needle); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:155:26: note: expanded from macro 'wxCRT_StrstrW'
#define wxCRT_StrstrW wcsstr
^~~~~~
/usr/include/wchar.h:141:10: note: candidate function
wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:189:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return ::wcsstr(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:581:14: error: call to 'wcsstr' is ambiguous
{ return wxCRT_StrstrW(haystack, needle.wc_str()); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:155:26: note: expanded from macro 'wxCRT_StrstrW'
#define wxCRT_StrstrW wcsstr
^~~~~~
/usr/include/wchar.h:141:10: note: candidate function
wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:189:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return ::wcsstr(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:596:14: error: call to 'wcsstr' is ambiguous
{ return wxCRT_StrstrW(haystack.c_str(), needle); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:155:26: note: expanded from macro 'wxCRT_StrstrW'
#define wxCRT_StrstrW wcsstr
^~~~~~
/usr/include/wchar.h:141:10: note: candidate function
wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:189:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return ::wcsstr(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:598:14: error: call to 'wcsstr' is ambiguous
{ return wxCRT_StrstrW(haystack, needle); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:155:26: note: expanded from macro 'wxCRT_StrstrW'
#define wxCRT_StrstrW wcsstr
^~~~~~
/usr/include/wchar.h:141:10: note: candidate function
wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:189:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return ::wcsstr(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:603:14: error: call to 'wcschr' is ambiguous
{ return wxCRT_StrchrW(s, c); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:145:26: note: expanded from macro 'wxCRT_StrchrW'
#define wxCRT_StrchrW wcschr
^~~~~~
/usr/include/wchar.h:125:10: note: candidate function
wchar_t *wcschr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:180:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return ::wcschr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:607:14: error: call to 'wcsrchr' is ambiguous
{ return wxCRT_StrrchrW(s, c); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:153:26: note: expanded from macro 'wxCRT_StrrchrW'
#define wxCRT_StrrchrW wcsrchr
^~~~~~~
/usr/include/wchar.h:137:10: note: candidate function
wchar_t *wcsrchr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:186:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return ::wcsrchr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:611:14: error: call to 'wcschr' is ambiguous
{ return wxCRT_StrchrW(s, (wchar_t)c); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:145:26: note: expanded from macro 'wxCRT_StrchrW'
#define wxCRT_StrchrW wcschr
^~~~~~
/usr/include/wchar.h:125:10: note: candidate function
wchar_t *wcschr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:180:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return ::wcschr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:615:14: error: call to 'wcsrchr' is ambiguous
{ return wxCRT_StrrchrW(s, (wchar_t)c); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:153:26: note: expanded from macro 'wxCRT_StrrchrW'
#define wxCRT_StrrchrW wcsrchr
^~~~~~~
/usr/include/wchar.h:137:10: note: candidate function
wchar_t *wcsrchr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:186:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return ::wcsrchr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:619:14: error: call to 'wcschr' is ambiguous
{ return wxCRT_StrchrW(s, (wchar_t)c); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:145:26: note: expanded from macro 'wxCRT_StrchrW'
#define wxCRT_StrchrW wcschr
^~~~~~
/usr/include/wchar.h:125:10: note: candidate function
wchar_t *wcschr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:180:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return ::wcschr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:623:14: error: call to 'wcsrchr' is ambiguous
{ return wxCRT_StrrchrW(s, (wchar_t)c); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:153:26: note: expanded from macro 'wxCRT_StrrchrW'
#define wxCRT_StrrchrW wcsrchr
^~~~~~~
/usr/include/wchar.h:137:10: note: candidate function
wchar_t *wcsrchr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:186:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return ::wcsrchr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:661:14: error: call to 'wcschr' is ambiguous
{ return wxCRT_StrchrW((const wchar_t*)s.c_str(), c); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:145:26: note: expanded from macro 'wxCRT_StrchrW'
#define wxCRT_StrchrW wcschr
^~~~~~
/usr/include/wchar.h:125:10: note: candidate function
wchar_t *wcschr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:180:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return ::wcschr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:663:14: error: call to 'wcsrchr' is ambiguous
{ return wxCRT_StrrchrW((const wchar_t*)s.c_str(), c); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:153:26: note: expanded from macro 'wxCRT_StrrchrW'
#define wxCRT_StrrchrW wcsrchr
^~~~~~~
/usr/include/wchar.h:137:10: note: candidate function
wchar_t *wcsrchr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:186:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return ::wcsrchr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:681:14: error: call to 'wcschr' is ambiguous
{ return wxCRT_StrchrW(s.AsWChar(), c); }
^~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:145:26: note: expanded from macro 'wxCRT_StrchrW'
#define wxCRT_StrchrW wcschr
^~~~~~
/usr/include/wchar.h:125:10: note: candidate function
wchar_t *wcschr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:180:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return ::wcschr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:683:14: error: call to 'wcsrchr' is ambiguous
{ return wxCRT_StrrchrW(s.AsWChar(), c); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:153:26: note: expanded from macro 'wxCRT_StrrchrW'
#define wxCRT_StrrchrW wcsrchr
^~~~~~~
/usr/include/wchar.h:137:10: note: candidate function
wchar_t *wcsrchr(const wchar_t *, wchar_t);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:186:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsrchr(const wchar_t* __s, wchar_t __c) {return ::wcsrchr(__s, __c);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:688:14: error: call to 'wcspbrk' is ambiguous
{ return wxCRT_StrpbrkW(s, accept); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:152:26: note: expanded from macro 'wxCRT_StrpbrkW'
#define wxCRT_StrpbrkW wcspbrk
^~~~~~~
/usr/include/wchar.h:136:10: note: candidate function
wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:183:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return ::wcspbrk(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:694:14: error: call to 'wcspbrk' is ambiguous
{ return wxCRT_StrpbrkW(s, accept.wc_str()); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:152:26: note: expanded from macro 'wxCRT_StrpbrkW'
#define wxCRT_StrpbrkW wcspbrk
^~~~~~~
/usr/include/wchar.h:136:10: note: candidate function
wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:183:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return ::wcspbrk(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:696:14: error: call to 'wcspbrk' is ambiguous
{ return wxCRT_StrpbrkW(s, accept.AsWCharBuf()); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:152:26: note: expanded from macro 'wxCRT_StrpbrkW'
#define wxCRT_StrpbrkW wcspbrk
^~~~~~~
/usr/include/wchar.h:136:10: note: candidate function
wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:183:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return ::wcspbrk(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:702:14: error: call to 'wcspbrk' is ambiguous
{ return wxCRT_StrpbrkW(s.wc_str(), accept); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:152:26: note: expanded from macro 'wxCRT_StrpbrkW'
#define wxCRT_StrpbrkW wcspbrk
^~~~~~~
/usr/include/wchar.h:136:10: note: candidate function
wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:183:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return ::wcspbrk(__s1, __s2);}
^
In file included from ECSocket.cpp:35:
In file included from ./../../../Logger.h:28:
In file included from /Users/user/Desktop/wxWidgets/include/wx/log.h:65:
In file included from /Users/user/Desktop/wxWidgets/include/wx/hashmap.h:15:
/Users/user/Desktop/wxWidgets/include/wx/wxcrt.h:710:14: error: call to 'wcspbrk' is ambiguous
{ return wxCRT_StrpbrkW(s.AsWChar(), accept); }
^~~~~~~~~~~~~~
/Users/user/Desktop/wxWidgets/include/wx/wxcrtbase.h:152:26: note: expanded from macro 'wxCRT_StrpbrkW'
#define wxCRT_StrpbrkW wcspbrk
^~~~~~~
/usr/include/wchar.h:136:10: note: candidate function
wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/cwchar:183:49: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return ::wcspbrk(__s1, __s2);}
^
19 errors generated.
make[7]: *** [ECSocket.o] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2[/code]

Quote    Reply   

#4 [url]

Apr 29 14 4:22 PM

Re: error: call to 'wcspbrk' is ambiguous

Thanks for the help! The error is 'call to 'wcspbrk' is ambiguous', not 'call to 'wcsstr' is ambiguous' like in the wxwidgets forum. I compiled wxwidgets successfull. I get the error when I try to compile amule. The wxwidgwts version is 3.1.0 SVN. With wxwidgets 3.0.0 I was able to compile amule SVN 10835. I experienced that the compile options of wxwidgets are important when compiling amule.

Quote    Reply   

#5 [url]

May 1 14 4:05 PM

Re: error: call to 'wcspbrk' is ambiguous

arne wrote:
I compiled wxwidgets successfull. I get the error when I try to compile amule.

It is still a wxWidgets problem, not an aMule problem.

Quote    Reply   
Add Reply

Quick Reply

bbcode help