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

Compile error when including <complex> #15

Closed
DoDoENT opened this issue Mar 14, 2016 · 4 comments
Closed

Compile error when including <complex> #15

DoDoENT opened this issue Mar 14, 2016 · 4 comments
Milestone

Comments

@DoDoENT
Copy link

DoDoENT commented Mar 14, 2016

Error:

~/android-ndk-r11/sources/cxx-stl/gnu-libstdc++/4.9/include/complex:53:45: error: missing terminating ' character [-Werror]
 #error Cannot include both <complex> and C99's <complex.h>

This can be fixed by changing lines 52-54 of $NDK_DIR/sources/cxx-stl/gnu-libstdc++/4.9/include/complex

from

#ifdef _GLIBCXX_C99_COMPLEX_H
#error Cannot include both <complex> and C99's <complex.h>
#endif

into

#ifdef _GLIBCXX_C99_COMPLEX_H
#error Cannot include both <complex> and C99 <complex.h>
#endif
@DanAlbert
Copy link
Member

@thanm, that block doesn't exist in the upstream GCC at all. Instead there's just

// Get rid of a macro possibly defined in <complex.h>
#undef complex

@DanAlbert
Copy link
Member

Looks like cmtice actually fixed this when synchronizing us with the ChromeOS GCC, so this is already fixed for r12.

@DanAlbert DanAlbert added this to the r12 milestone Mar 14, 2016
@DoDoENT
Copy link
Author

DoDoENT commented Mar 18, 2016

I just updated to r11b and this issue is still present. I see now that it has been set to the r12 milestone. When is approximate release date for r12?

@DanAlbert
Copy link
Member

Should have a beta release early April. We've never actually done one of these before, so we'll see how that goes :)

Stable release will be in June.

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

3 participants