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

ArchLinux undeclared identifier min / max #1352

Closed
WebReflection opened this issue Jul 28, 2016 · 2 comments
Closed

ArchLinux undeclared identifier min / max #1352

WebReflection opened this issue Jul 28, 2016 · 2 comments
Labels

Comments

@WebReflection
Copy link

ArchLinux usually builds out of the box whatever other distro can build.

In this case there is a good old problem about undeclared identifier via mbstring

src/cruntime/mbstring.cpp:183:20: error: use of undeclared identifier 'min'
            ret += min(count, strlen((const char*)string));

It seems to be something related to the clang version which is currently version 3.8.0 (tags/RELEASE_380/final).

Following the uname:
Linux localhost 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux

All dependencies have been installed. Any way we can solve this?
AFAIK ArchLinux is the second most popular distro after Ubuntu, it would be great.

Thanks for any sort of hint or fix.

@WebReflection WebReflection changed the title ArchLinux undeclared identifier mix / max ArchLinux undeclared identifier min / max Jul 28, 2016
@obastemur
Copy link
Collaborator

obastemur commented Jul 28, 2016

@WebReflection are you using the linux branch or master ? AFAIK this problem was solved in linux branch

@WebReflection
Copy link
Author

I've completely missed the git checkout linux point of this list

I'll try again this evening and eventually reopen but I'm sure it'll be fine if it's something known.

Thank you.

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

No branches or pull requests

2 participants