tqdm / tqdm.cpp

C++ port of tqdm
Other
318 stars 29 forks source link

Does not compile on OSX due to size changes #50

Open nycynik opened 5 years ago

nycynik commented 5 years ago

It does not compile because the default size of size_t varies between OSX (and everywhere else?) Seems like it needs some help to compile on Mac OSX.

example error: `/opensource/tqdm.cpp/include/tqdm/tqdm.h:122:55: error: format specifies type 'unsigned long long' but the argument has type 'size_t' (aka 'unsigned long') [-Werror,-Wformat] printf("\nfinished: %" PRIu64 "/%" PRIu64 "\n", self.total, self.total);


`
nycynik commented 5 years ago

Found some information about it - seems there is a recommendation to use %lld for (long long)s