Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile on OSX due to size changes #50

Open
nycynik opened this issue Feb 18, 2019 · 1 comment
Open

Does not compile on OSX due to size changes #50

nycynik opened this issue Feb 18, 2019 · 1 comment

Comments

@nycynik
Copy link

nycynik commented Feb 18, 2019

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
Copy link
Author

nycynik commented Feb 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant