[MacPorts] #41033: cctype functions (e.g. isprint) not defined at link time when using g++ -std=c++11

MacPorts noreply at macports.org
Thu Nov 7 21:12:58 PST 2013


#41033: cctype functions (e.g. isprint) not defined at link time when using g++
-std=c++11
--------------------------+------------------------
  Reporter:  schnetter@…  |      Owner:  jeremyhu@…
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.2.1
Resolution:               |   Keywords:
      Port:  gcc48        |
--------------------------+------------------------

Comment (by jeremyhu@…):

 Inline is such a PITA.  I think this is what it should be.  Please feel
 free to chime in.  If you see issues, please provide test cases or links
 to references:

 {{{
 #if defined(__cplusplus) || \
     (__STDC_VERSION__ >= 199901L && \
      !defined(__GNUC_GNU_INLINE__) && \
      (!defined(__GNUC__) || defined(__clang__)))
 # define __header_inline           inline
 #elif defined(__GNUC__) && defined(__GNUC_STDC_INLINE__)
 # define __header_inline           extern __inline
 __attribute__((__gnu_inline__))
 #elif defined(__GNUC__)
 # define __header_inline           extern __inline
 #else
   /* If we land here, we've encountered an unsupported compiler,
    * so hopefully it understands static __inline as a fallback.
    */
 # define __header_inline           static __inline
 #endif
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41033#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list