ElementsProject / ElementsProject/elements
Compilation failed
- Ngôn ngữ chính
- C++
- Star
- 1.2k
- Fork
- 416
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 15
Mô tả
I'm currently trying to compile the latest release of the Elements Project for Windows on Linux.
When compiling (make), however, the following error occurs:
util/time.cpp: In function ‘std::string FormatISO8601DateTime(int64_t)’:
util/time.cpp:85:5: error: ‘gmtime_r’ was not declared in this scope; did you mean ‘gmtime_s’?
85 | gmtime_r(&time_val, &ts);
| ^~~~~~~~
| gmtime_s
util/time.cpp: In function ‘std::string FormatISO8601Date(int64_t)’:
util/time.cpp:96:5: error: ‘gmtime_r’ was not declared in this scope; did you mean ‘gmtime_s’?
96 | gmtime_r(&time_val, &ts);
| ^~~~~~~~
| gmtime_s
util/time.cpp: In function ‘std::string FormatISO8601Time(int64_t)’:
util/time.cpp:107:5: error: ‘gmtime_r’ was not declared in this scope; did you mean ‘gmtime_s’?
107 | gmtime_r(&time_val, &ts);
| ^~~~~~~~
| gmtime_s
CXX test/test_bitcoin-arith_uint256_tests.o
make[2]: *** [Makefile:9193: util/libbitcoin_util_a-time.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/gabriel/elements-elements-0.18.1.12/src'
make[1]: *** [Makefile:13626: all-recursive] Error 1
make[1]: Leaving directory '/home/gabriel/elements-elements-0.18.1.12/src'
make: *** [Makefile:783: all-recursive] Error 1
why this ?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi đã báo cáo với make và kiểm tra util/time.cpp tại các dòng 85, 96 và 107, nơi gmtime_r được gọi. Kiểm tra ngữ cảnh build dành riêng cho nền tảng khi biên dịch Windows target trên Linux; được xem là hoàn tất khi bản phát hành mới nhất biên dịch thành công mà không có các lỗi này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp, linux
- Lĩnh vực
- build-system, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100