ElementsProject / ElementsProject/elements
Compilation failed
- Langage dominant
- C++
- Étoiles
- 1.2k
- Forks
- 416
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 15
Description
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 ?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’échec signalé avec make et examinez util/time.cpp aux lignes 85, 96 et 107, où gmtime_r est appelé. Vérifiez le contexte de build spécifique à la plateforme pour compiler la cible Windows sous Linux ; le travail est terminé lorsque la dernière release se compile avec succès sans ces erreurs.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp, linux
- Domaine
- build-system, operating-systems
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100