Skip to content

WxPython compilation fails. #3

Description

@demianfe

Error message:

In file included from /System/Index/include/c++/6.2.0/memory:81:0,
from ./src/stc/scintilla/src/Editor.cxx:18:
/System/Index/include/c++/6.2.0/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^~~~~~~~
./src/stc/scintilla/src/Editor.cxx: In function ‘bool Close(Point, Point)’:
./src/stc/scintilla/src/Editor.cxx:5844:23: error: call of overloaded ‘abs(XYPOSITION)’ is ambiguous
if (abs(pt1.x - pt2.x) > 3)
^
In file included from /System/Index/include/c++/6.2.0/cstdlib:75:0,
from /System/Index/include/c++/6.2.0/stdlib.h:36,
from ./src/stc/scintilla/src/Editor.cxx:8:
/usr/local/include/stdlib.h:735:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW attribute ((const)) __wur;
^~~
In file included from /System/Index/include/c++/6.2.0/stdlib.h:36:0,
from ./src/stc/scintilla/src/Editor.cxx:8:
/System/Index/include/c++/6.2.0/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/System/Index/include/c++/6.2.0/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/System/Index/include/c++/6.2.0/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
./src/stc/scintilla/src/Editor.cxx:5846:23: error: call of overloaded ‘abs(XYPOSITION)’ is ambiguous
if (abs(pt1.y - pt2.y) > 3)
^
In file included from /System/Index/include/c++/6.2.0/cstdlib:75:0,
from /System/Index/include/c++/6.2.0/stdlib.h:36,
from ./src/stc/scintilla/src/Editor.cxx:8:
/usr/local/include/stdlib.h:735:12: note: candidate: int abs(int)
extern int abs (int __x) __THROW attribute ((const)) __wur;
^~~
In file included from /System/Index/include/c++/6.2.0/stdlib.h:36:0,
from ./src/stc/scintilla/src/Editor.cxx:8:
/System/Index/include/c++/6.2.0/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
^~~
/System/Index/include/c++/6.2.0/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/System/Index/include/c++/6.2.0/cstdlib:172:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^~~
make: *** [Makefile:16880: wxscintilla_Editor.o] Error 1
Compile: WxPython 3.0.2.0 - Build process failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions