<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi there, my code uses a load of tr1 undefined maps for example so i
    need to use the newer functions however trying to link is not
    working; i've reduced the code to the following simple example
    (there are many more functions that don't in fact link but assuming
    they are all related to single cause):<br>
    <br>
    <font face="Courier New, Courier, monospace">/* isalnum example */<br>
      #include &lt;stdio.h&gt;<br>
      #include &lt;ctype.h&gt;<br>
      #include &lt;string&gt;<br>
      <br>
      int main ()<br>
      {<br>
      &nbsp; int i;<br>
      &nbsp; char str[]="c3po...";<br>
      &nbsp; i=0;<br>
      &nbsp; while (isalnum(str[i])) i++;<br>
      &nbsp; printf ("The first %d characters are alphanumeric.\n",i);<br>
      &nbsp; return 0;<br>
      }</font><br>
    <br>
    I installed and activated mac ports as follows:<br>
    <font face="Courier New, Courier, monospace">sudo port install
      libgcrypt<br>
      sudo port install gcc48 +universal<br>
      sudo port select --set gcc mp-gcc48<br>
      hash gcc <br>
      gcc --version<br>
      sudo port install wxWidgets-3.0 +universal<br>
      sudo port select --set wxWidgets wxWidgets-3.0<br>
      hash wx-config<br>
      sudo port install psqlODBC postgresql92 postgresql92-server<br>
      sudo port install pgAdmin3<br>
      sudo mkdir -p /opt/local/var/db/postgresql92/defaultdb<br>
      sudo chown postgres:postgres
      /opt/local/var/db/postgresql92/defaultdb<br>
      sudo su postgres -c '/opt/local/lib/postgresql92/bin/initdb -D
      /opt/local/var/db/postgresql92/defaultdb'<br>
      sudo launchctl load -w
      /Library/LaunchDaemons/org.macports.postgresql92-server.plist</font><br>
    <br>
    Now trying to compile gives:<br>
    <font face="Courier New, Courier, monospace">chrisd$ g++ -std=c++11
      -o test test.cpp<br>
      Undefined symbols for architecture x86_64:<br>
      &nbsp; "isalnum(int)", referenced from:<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _main in ccDuU6gp.o<br>
      ld: symbol(s) not found for architecture x86_64<br>
      collect2: error: ld returned 1 exit status</font><br>
    <font face="Courier New, Courier, monospace"><br>
      g++ -std=gnu++0x -o test test.cpp<br>
      Undefined symbols for architecture x86_64:<br>
      &nbsp; "isalnum(int)", referenced from:<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _main in cc63DZ6i.o<br>
      ld: symbol(s) not found for architecture x86_64<br>
      collect2: error: ld returned 1 exit status<br>
    </font><br>
    it's no good trying to change architecture:<br>
    <font face="Courier New, Courier, monospace"><br>
      g++ -arch i386 -std=gnu++0x -o test test.cpp<br>
      Undefined symbols for architecture i386:<br>
      &nbsp; "isalnum(int)", referenced from:<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _main in ccNfChK7.o<br>
      ld: symbol(s) not found for architecture i386<br>
      collect2: error: ld returned 1 exit status</font><br>
    <br>
    <br>
    Any help would be much appreciated. Thanks<br>
    <br>
    Christopher<br>
    <br>
  </body>
</html>