|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] SVN 585 ... new clang errors |
Date: | Wed, 01 Apr 2015 15:37:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Fausto, I changed ./configure once more to handle clang, SVN 586. There are now 3 cases: 1. full support of dynamic arrays ( = gcc) 2. limited support of dynamic arrays ( = clang) 3. no support of dynamic arrays ( = ???) Please let me know if it works now. /// Jürgen On 04/01/2015 10:33 AM, Fausto Saporito
wrote:
Hello, I updated to svn 585, and I got a different error in this case: Bif_F12_FORMAT.cc:682:28: error: no matching function for call to 'strchr' const char * dot = strchr(data_buf, '.'); ^~~~~~ /usr/include/string.h:76:7: note: candidate function not viable: no known conversion from '__DynArray<char>' to 'const char *' for 1st argument char *strchr(const char *, int); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:98:46: note: candidate function not viable: no known conversion from '__DynArray<char>' to 'char *' for 1st argument inline _LIBCPP_INLINE_VISIBILITY char* strchr( char* __s, int __c) {return ::strchr(__s, __c);} ^ Bif_F12_FORMAT.cc:683:37: error: invalid operands to binary _expression_ ('const char *' and '__DynArray<char>') const int ilen = dot ? (dot - data_buf) : strlen(data_buf); ~~~ ^ ~~~~~~~~ ./Common.hh:354:1: note: candidate function not viable: no known conversion from 'const char *' to 'Function_PC' for 1st argument operator -(Function_PC pc, int offset) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:622:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'const char *' operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1017:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'const char *' operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1369:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'const char *' operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:486:11: note: candidate template ignored: could not match 'fpos<type-parameter-0-0>' against 'const char *' streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:558:1: note: candidate template ignored: could not match 'complex<type-parameter-0-0>' against 'const char *' operator-(const complex<_Tp>& __x, const complex<_Tp>& __y) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:568:1: note: candidate template ignored: could not match 'complex<type-parameter-0-0>' against 'const char *' operator-(const complex<_Tp>& __x, const _Tp& __y) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:578:1: note: candidate template ignored: could not match 'complex' against '__DynArray' operator-(const _Tp& __x, const complex<_Tp>& __y) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:737:1: note: candidate function template not viable: requires single argument '__x', but 2 arguments were provided operator-(const complex<_Tp>& __x) ^ Bif_F12_FORMAT.cc:683:51: error: no matching function for call to 'strlen' const int ilen = dot ? (dot - data_buf) : strlen(data_buf); ^~~~~~ /usr/include/string.h:82:9: note: candidate function not viable: no known conversion from '__DynArray<char>' to 'const char *' for 1st argument size_t strlen(const char *); ^ 1 warning and 3 errors generated. Please could you check it ? thanks, Fausto |
[Prev in Thread] | Current Thread | [Next in Thread] |