[MacPorts] #40806: octave-devel:
MacPorts
noreply at macports.org
Fri Oct 18 08:58:08 PDT 2013
#40806: octave-devel:
---------------------------+-------------------------
Reporter: ram@… | Owner: michaelld@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Resolution: | Keywords: mavericks
Port: octave-devel |
---------------------------+-------------------------
Comment (by michaelld@…):
Sure; save the following as "test_std_string.cc":
{{{
#include <iostream>
void print (const std::string& str)
{ std::cout << str << std::endl; }
int main (void)
{ print ("foo"); return (1); }
}}}
then compile as:
{{{
clang++ -o test_std_string -pipe -g test_std_string.cc
}}}
and, if that succeeds,
{{{
c++filt `nm -a test_std_string | grep print | grep " T " | awk '{ print
$NF }'`
}}}
should find, demangle, and print out the actual function. When I do the
above, I get back:
{{{
print(std::string const&)
}}}
as expected.
--
Ticket URL: <https://trac.macports.org/ticket/40806#comment:6>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list