Welcome to the blog of Can Sar, a Stanford CS major. This blog is made up of my thoughts on Computer Science and the computer industry, as well as ever exciting tales from my life.

June 19, 2003

gxx_personality_v0aaaaaaaaahhhhhh!

I wrote some short code using Unix system calls for Mac OS X and tried to compile them and got a linker error saying ld: gxx_personality_v0 . I tried to compile some of Michael's code, without any luck. If anyone out there has any clue what might be causing this, please help. For now, I cannot use any Unix system calls in my code, which makes it really really hard to learn unix C programming.

Posted by Can Sar at June 19, 2003 01:28 PM to category | TrackBack
Comments

You know how much experience I have with mac programming, but if you're using gcc 3.x instead of 2.9.5 there might be some conflict with toollib.

Google doesn't have too many hints as to what to do, but try adding the -lstdc++ to the STATIC_LIBS line of your makefile as referenced here (which I think refers to recompiling php to enable more modules, but it's the same error):
http://lists.gis.umn.edu/pipermail/mapserver-users/2003-June/004395.html

Best of luck!

Posted by Travis on June 19, 2003 09:22 PM

The linker error is telling you that your code is dependent on C++, even though it might not seem like it. You can fix the problem by building with g++ instead of gcc or by adding the -lstdc++ flag to your link line.

Using zero system calls is extremely difficult, by the way. Are you sure you know how to do that? It's particularly hard if you're using C or C++, as you appear to be doing.

Posted by Eric Albert on June 24, 2003 12:08 AM

Thanks a lot for the help!!
{d*mn I have no idea: "-lstdc++" !!}

Posted by Bondan Sumbodo S on March 16, 2004 01:31 AM
Post a comment









Remember personal info?