annoviko / annoviko/pyclustering

Build failed: 'numeric_limits' is not a member of 'std'

Đang mở
#690 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.2k
Fork
262
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```
platform: Arch Linux
gcc version 12.1.1 20220730 (GCC)
```
When buildling package, gcc throws error:
```
In file included from src/cluster/bsas.cpp:10:
./include/pyclustering/cluster/bsas.hpp:92:44: error: 'numeric_limits' is not a member of 'std'
92 | double m_distance = std::numeric_limits::max(); /**< Distance between the cluster and a specific point. */
| ^~~~~~~~~~~~~~
./include/pyclustering/cluster/bsas.hpp:92:59: error: expected primary-expression before 'double'
92 | double m_distance = std::numeric_limits::max(); /**< Distance between the cluster and a specific point. */
| ^~~~~~
make[1]: *** [ccore.mk:154: obj/ccore/64-bit/cluster/bsas.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ./include/pyclustering/cluster/mbsas.hpp:12,
from src/cluster/mbsas.cpp:10:
./include/pyclustering/cluster/bsas.hpp:92:44: error: 'numeric_limits' is not a member of 'std'
92 | double m_distance = std::numeric_limits::max(); /**< Distance between the cluster and a specific point. */
| ^~~~~~~~~~~~~~
./include/pyclustering/cluster/bsas.hpp:92:59: error: expected primary-expression before 'double'
92 | double m_distance = std::numeric_limits::max(); /**< Distance between the cluster and a specific point. */
| ^~~~~~
make[1]: *** [ccore.mk:154: obj/ccore/64-bit/cluster/mbsas.o] Error 1
src/cluster/agglomerative.cpp: In member function 'void pyclustering::clst::agglomerative::merge_by_average_link()':
src/cluster/agglomerative.cpp:89:44: error: 'numeric_limits' is not a member of 'std'
89 | double minimum_average_distance = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
src/cluster/agglomerative.cpp:89:59: error: expected primary-expression before 'double'
89 | double minimum_average_distance = std::numeric_limits::max();
| ^~~~~~
src/cluster/agglomerative.cpp: In member function 'void pyclustering::clst::agglomerative::merge_by_centroid_link()':
src/cluster/agglomerative.cpp:123:44: error: 'numeric_limits' is not a member of 'std'
123 | double minimum_average_distance = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
src/cluster/agglomerative.cpp:123:59: error: expected primary-expression before 'double'
123 | double minimum_average_distance = std::numeric_limits::max();
| ^~~~~~
src/cluster/agglomerative.cpp: In member function 'void pyclustering::clst::agglomerative::merge_by_complete_link()':
src/cluster/agglomerative.cpp:149:45: error: 'numeric_limits' is not a member of 'std'
149 | double minimum_complete_distance = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
src/cluster/agglomerative.cpp:149:60: error: expected primary-expression before 'double'
149 | double minimum_complete_distance = std::numeric_limits::max();
| ^~~~~~
src/cluster/agglomerative.cpp: In member function 'void pyclustering::clst::agglomerative::merge_by_signle_link()':
src/cluster/agglomerative.cpp:184:43: error: 'numeric_limits' is not a member of 'std'
184 | double minimum_single_distance = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
src/cluster/agglomerative.cpp:184:58: error: expected primary-expression before 'double'
184 | double minimum_single_distance = std::numeric_limits::max();
| ^~~~~~
src/cluster/agglomerative.cpp:193:54: error: 'numeric_limits' is not a member of 'std'
193 | double candidate_minimum_distance = std::numeric_limits::max();
| ^~~~~~~~~~~~~~
src/cluster/agglomerative.cpp:193:69: error: expected primary-expression before 'double'
193 | double candidate_minimum_distance = std::numeric_limits::max();
| ^~~~~~
make[1]: *** [ccore.mk:154: obj/ccore/64-bit/cluster/agglomerative.o] Error 1
make[1]: Leaving directory '/tmp/makepkg/python-pyclustering-git/src/pyclustering/ccore'
make: *** [makefile:53: ccore_64bit] Error 2
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.