tqdm / tqdm.cpp

C++ port of tqdm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not compile on OSX due to size changes

nycynik opened this issue · comments

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); ~~~ ^~~~~~~~~~

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