Skip to content

Compile error when including <complex> #15

Closed

Description

@DoDoENT

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

Activity

  1. DanAlbert commented on Mar 14, 2016

    @DanAlbert
    Contributor

    @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
  2. DanAlbert commented on Mar 14, 2016

    @DanAlbert
    Contributor

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

  3. added this to the r12 milestone on Mar 14, 2016
  4. DoDoENT commented on Mar 18, 2016

    @DoDoENT
    Author

    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?

  5. DanAlbert commented on Mar 18, 2016

    @DanAlbert
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions