#36924: gcc47 @4.7.2 or ld(64) problem --------------------------------+-------------------- Reporter: angelo.graziosi@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: invalid | Keywords: Port: gcc47 | --------------------------------+-------------------- Comment (by jeremyhu@…): http://www.greenend.org.uk/rjk/tech/inline.html:
In this example, one of the declarations does not mention inline: {{{ // a declaration not mentioning inline int max(int a, int b);
// a definition mentioning inline inline int max(int a, int b) { return a > b ? a : b; } }}} In either example, the function will be callable from other files.
-- Ticket URL: <https://trac.macports.org/ticket/36924#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS