g++ calc_coordinate/calc_coordinate.cpp -o calc_coordinate.exe -g -O0 -Wall -std=c++14 -fvisibility=hidden -I "../../" --input-charset=utf-8 -mrdrnd -fexec-charset=CP932
In file included from calc_coordinate/calc_coordinate.cpp:1:0:
../../dxlibex/basic_types.hpp: In member function 'void dxle::detail::ostream_operator_helper<CharType, PointType>::operator()(std::basic_ostream<CharType>&, const CharType*, const dxle::point_c<PointType>&)':
../../dxlibex/basic_types.hpp:123:13: error: need 'typename' before 'dxle::detail::ToArithmetic<PointType>::type' because 'dxle::detail::ToArithmetic<PointType>' is a dependent scope
typedef detail::ToArithmetic<PointType>::type Arithmetic;
^
../../dxlibex/basic_types.hpp:124:23: error: 'Arithmetic' does not name a type
os << static_cast<Arithmetic>(p.x) << str << static_cast<Arithmetic>(p.y);
^
../../dxlibex/basic_types.hpp:124:62: error: 'Arithmetic' does not name a type
os << static_cast<Arithmetic>(p.x) << str << static_cast<Arithmetic>(p.y);
^
../../dxlibex/basic_types.hpp: In function 'std::wistream& dxle::operator>>(std::wistream&, dxle::point_c<T>&)':
../../dxlibex/basic_types.hpp:151:49: error: 'is' was not declared in this scope
detail::istream_operator_helper<wchar_t, T>()(is, p);
^
../../dxlibex/basic_types.hpp: In instantiation of 'dxle::point_c<T> dxle::detail::abs_helper<T, is_signed>::operator()(const dxle::point_c<T>&) [with T = double; bool is_signed = true]':
../../dxlibex/basic_types.hpp:379:91: required from 'dxle::point_c<T> dxle::abs(const dxle::point_c<T>&) [with T = double]'
calc_coordinate/calc_coordinate.cpp:36:26: required from here
../../dxlibex/basic_types.hpp:373:75: error: call of overloaded 'abs(const value_type&)' is ambiguous
point_c<T> operator() (const point_c<T>& o){ return point_c<T>(std::abs(o.x), std::abs(o.y)); }
^
In file included from C:/msys64/mingw64/include/c++/5.2.0/cstdlib:72:0,
from C:/msys64/mingw64/include/c++/5.2.0/ext/string_conversions.h:41,
from C:/msys64/mingw64/include/c++/5.2.0/bits/basic_string.h:5247,
from C:/msys64/mingw64/include/c++/5.2.0/string:52,
from C:/msys64/mingw64/include/c++/5.2.0/bits/locale_classes.h:40,
from C:/msys64/mingw64/include/c++/5.2.0/bits/ios_base.h:41,
from C:/msys64/mingw64/include/c++/5.2.0/ios:42,
from C:/msys64/mingw64/include/c++/5.2.0/ostream:38,
from C:/msys64/mingw64/include/c++/5.2.0/iostream:39,
from ../../dxlibex/basic_types.hpp:4,
from calc_coordinate/calc_coordinate.cpp:1:
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdlib.h:329:15: note: candidate: int abs(int)
int __cdecl abs(int _X);
^
In file included from C:/msys64/mingw64/include/c++/5.2.0/ext/string_conversions.h:41:0,
from C:/msys64/mingw64/include/c++/5.2.0/bits/basic_string.h:5247,
from C:/msys64/mingw64/include/c++/5.2.0/string:52,
from C:/msys64/mingw64/include/c++/5.2.0/bits/locale_classes.h:40,
from C:/msys64/mingw64/include/c++/5.2.0/bits/ios_base.h:41,
from C:/msys64/mingw64/include/c++/5.2.0/ios:42,
from C:/msys64/mingw64/include/c++/5.2.0/ostream:38,
from C:/msys64/mingw64/include/c++/5.2.0/iostream:39,
from ../../dxlibex/basic_types.hpp:4,
from calc_coordinate/calc_coordinate.cpp:1:
C:/msys64/mingw64/include/c++/5.2.0/cstdlib:166:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
C:/msys64/mingw64/include/c++/5.2.0/cstdlib:174:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^
In file included from calc_coordinate/calc_coordinate.cpp:1:0:
../../dxlibex/basic_types.hpp:373:90: error: call of overloaded 'abs(const value_type&)' is ambiguous
point_c<T> operator() (const point_c<T>& o){ return point_c<T>(std::abs(o.x), std::abs(o.y)); }
^
In file included from C:/msys64/mingw64/include/c++/5.2.0/cstdlib:72:0,
from C:/msys64/mingw64/include/c++/5.2.0/ext/string_conversions.h:41,
from C:/msys64/mingw64/include/c++/5.2.0/bits/basic_string.h:5247,
from C:/msys64/mingw64/include/c++/5.2.0/string:52,
from C:/msys64/mingw64/include/c++/5.2.0/bits/locale_classes.h:40,
from C:/msys64/mingw64/include/c++/5.2.0/bits/ios_base.h:41,
from C:/msys64/mingw64/include/c++/5.2.0/ios:42,
from C:/msys64/mingw64/include/c++/5.2.0/ostream:38,
from C:/msys64/mingw64/include/c++/5.2.0/iostream:39,
from ../../dxlibex/basic_types.hpp:4,
from calc_coordinate/calc_coordinate.cpp:1:
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdlib.h:329:15: note: candidate: int abs(int)
int __cdecl abs(int _X);
^
In file included from C:/msys64/mingw64/include/c++/5.2.0/ext/string_conversions.h:41:0,
from C:/msys64/mingw64/include/c++/5.2.0/bits/basic_string.h:5247,
from C:/msys64/mingw64/include/c++/5.2.0/string:52,
from C:/msys64/mingw64/include/c++/5.2.0/bits/locale_classes.h:40,
from C:/msys64/mingw64/include/c++/5.2.0/bits/ios_base.h:41,
from C:/msys64/mingw64/include/c++/5.2.0/ios:42,
from C:/msys64/mingw64/include/c++/5.2.0/ostream:38,
from C:/msys64/mingw64/include/c++/5.2.0/iostream:39,
from ../../dxlibex/basic_types.hpp:4,
from calc_coordinate/calc_coordinate.cpp:1:
C:/msys64/mingw64/include/c++/5.2.0/cstdlib:166:3: note: candidate: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
C:/msys64/mingw64/include/c++/5.2.0/cstdlib:174:3: note: candidate: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^
GNUmakefile:45: ターゲット 'calc_coordinate.exe' のレシピで失敗しました
make: *** [calc_coordinate.exe] エラー 1
sampleのビルド結果