Ledger 3.1.1 Error Compilation Cygwin

15 views
Skip to first unread message

Dwan 765

unread,
Aug 10, 2020, 12:49:20 PM8/10/20
to Ledger

What I'm doing wrong?

[ 70%] Building CXX object src/CMakeFiles/libledger.dir/amount.cc.o
[ 71%] Building CXX object src/CMakeFiles/libledger.dir/stream.cc.o
[ 73%] Building CXX object src/CMakeFiles/libledger.dir/mask.cc.o
[ 75%] Building CXX object src/CMakeFiles/libledger.dir/times.cc.o
/home/0wner/ledger-3.1.1/src/times.cc: In member function ‘T ledger::{anonymous}::temporal_io_t<T, InputFacetType, OutputFacetType>::parse(const char*) [with T = boost::posix_time::ptime; InputFacetType = boost::date_time::time_input_facet<boost::posix_time::ptime, char>; OutputFacetType = boost::date_time::time_facet<boost::posix_time::ptime, char>]’:
/home/0wner/ledger-3.1.1/src/times.cc:145:45: error: ‘strptime’ was not declared in this scope
if (strptime(str, fmt_str.c_str(), &data))
^
/home/0wner/ledger-3.1.1/src/times.cc: In member function ‘T ledger::{anonymous}::temporal_io_t<T, InputFacetType, OutputFacetType>::parse(const char*) [with T = boost::gregorian::date; InputFacetType = boost::date_time::date_input_facet<boost::gregorian::date, char>; OutputFacetType = boost::date_time::date_facet<boost::gregorian::date, char>]’:
/home/0wner/ledger-3.1.1/src/times.cc:182:45: error: ‘strptime’ was not declared in this scope
if (strptime(str, fmt_str.c_str(), &data))
^
/home/0wner/ledger-3.1.1/src/times.cc: In member function ‘T ledger::{anonymous}::temporal_io_t<T, InputFacetType, OutputFacetType>::parse(const char*) [with T = boost::posix_time::ptime; InputFacetType = boost::date_time::time_input_facet<boost::posix_time::ptime, char>; OutputFacetType = boost::date_time::time_facet<boost::posix_time::ptime, char>]’:
/home/0wner/ledger-3.1.1/src/times.cc:150:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/0wner/ledger-3.1.1/src/times.cc: In member function ‘T ledger::{anonymous}::temporal_io_t<T, InputFacetType, OutputFacetType>::parse(const char*) [with T = boost::gregorian::date; InputFacetType = boost::date_time::date_input_facet<boost::gregorian::date, char>; OutputFacetType = boost::date_time::date_facet<boost::gregorian::date, char>]’:
/home/0wner/ledger-3.1.1/src/times.cc:187:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [src/CMakeFiles/libledger.dir/build.make:1172: src/CMakeFiles/libledger.dir/times.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:125: src/CMakeFiles/libledger.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
acprep: ERROR: Execution failed: make

Reply all
Reply to author
Forward
0 new messages