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

Use std::cout over printf to fix mingw support, and print size_t on all platforms #11

Merged
merged 1 commit into from
Aug 23, 2016

Conversation

cwfitzgerald
Copy link
Contributor

This solves issue #10, and compiles with gcc-4.7+ on Ubuntu 16.04. It also compiles with gcc-6.1.1 on mingw. The problem with gcc-4.6 is that it doesn't recognize the options of -Wpedantic -std=c++11, and if compiled without -Wpedantic and with -std=c++0x it fails due to std::string having no member pop_back(). 4.6 also fails to compile the main codebase,

@dascandy dascandy merged commit 1348903 into tomtom-international:master Aug 23, 2016
@dascandy
Copy link
Contributor

Merging it anyway even though Travis failed. Somehow it created a superfluous directory and that broke every build.

Thanks for the fix! I hadn't thought of the %zu problem any more as I thought all compilers now complied with C11 - but apparently this one still doesn't...

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

Successfully merging this pull request may close these issues.

2 participants