Hello all,

I’m getting an undefined symbol for isalnum and isgraph using g++-mp-4.8.

I found this article here: 
http://stackoverflow.com/questions/19649421/something-odd-happened-to-c-11-in-mavericks
 which mentions the issue in Mavericks and the Xcode command line tools.  
However, I’m using MP and the g++ from mp when trying to build.  And yes, I 
rebuilt ports, from scratch, when I upgraded (clean install) to Mavericks.

It could just be me missing something, but I’ve tried everything I can think of 
and every combination of google searches to figure this one out.  The code is 
very simple (I think).  Oh, and yes, I did a +universal when I installed gcc49 
and gcc48.  And if it matters, I installed gcc49 (with libgcc) before gcc48.  
When I tried gcc48 then gcc49 I got an error about libgcc, but doing it the 
other way works.

What am I missing???

Thanks,

-b

#include <ctype.h>

typedef char Boolean

static inline int
teststring(char p, Boolean alnum)
{
    if (alnum)
    {
        return isalnum(p);
    }

    return isgraph(p);
}


_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to