• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linking error with C++ framework and GCC 4.0.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking error with C++ framework and GCC 4.0.1


  • Subject: Re: Linking error with C++ framework and GCC 4.0.1
  • From: jkp <email@hidden>
  • Date: Sat, 12 Nov 2005 16:36:12 +0000

Right

Some further digging around has turned up some interesting / worrying news.

The symbol it wants is std::__ioinit which is part of a header called iostream. Im not sure whether this symbol is actually included in later releases since it is present in the .a version of libstdc++ but not the dylib. So that seems to point to a mismatch between the header that is being included and the library being linked. Per- suing this theory I have basically found that there seems to be a whole directory of headers missing with the GCC 4.0.1 install. Namely /usr/include/gcc/darwin/4.0/c++. The directory is simply missing now so I guess that my system is trying to use the older header that doesnt match the lib i have.

Maybe im barking up the wrong tree, but I checked the GCC4 package from 2.1 and it had that directory, under 4.0.1 from 2.2 its gone. Is this right or has someone seriously messed up at Apple?

If this directory is missing unintentionally it seems that this will be a MAJOR issue for some people. I hope that someone in the know picks this mail up sooner rather than later and can clarify the situation.

Jamie

On 12 Nov 2005, at 14:46, jkp wrote:

Dear List

Since updating to Xcode 2.2 I can no longer build one of my C++ frameworks. The error I get is this:

ld: Undefined symbols:
__ZSt8__ioinit
/usr/bin/libtool: internal link edit command failed


I have searched my system for anything remotely resembling ioinit but with no luck. A search on the project itself also turns up nothing. Does anyone have a clue what is going on here? Im somewhat stuck now.


Cheers

Jamie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40kirkconsulting.co.uk


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Linking error with C++ framework and GCC 4.0.1
      • From: Shawn Erickson <email@hidden>
References: 
 >Linking error with C++ framework and GCC 4.0.1 (From: jkp <email@hidden>)

  • Prev by Date: Re: How to see the arguments of methods from the stack trace during debugging
  • Next by Date: Re: Linking error with C++ framework and GCC 4.0.1
  • Previous by thread: Linking error with C++ framework and GCC 4.0.1
  • Next by thread: Re: Linking error with C++ framework and GCC 4.0.1
  • Index(es):
    • Date
    • Thread