• 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: Loading the Foundation at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading the Foundation at runtime


  • Subject: Re: Loading the Foundation at runtime
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 25 Jan 2011 15:30:59 +0100

Le 25 janv. 2011 à 14:55, Fritz Anderson a écrit :

> On 24 Jan 2011, at 10:39 AM, Mathieu Suen wrote:
>
>> int
>> main ()
>> {
>> int error;
>> objc_loadModule ("Foundation", onLoad, &error);
>> return EXIT_SUCCESS;
>> }
>> ----------objc-test.c----------
>>
>> But the linker complain:
>>
>> Undefined symbols:
>> "_objc_loadModule", referenced from:
>>    _main in ccX2yu3T.o
>> ld: symbol(s) not found
>>
>> I have compile it using the command:
>> gcc objc-test.c -g -lobjc -o test
>
> According to nm, the symbol objc_loadModule does not appear in libobjc.dylib in at least my installation of 10.6.6. The delta notes for 10.5 in the runtime reference says the function is deprecated.
>

nm -arch i386 libobjc.dylib works.

This symbol is effectively not available int the 64bit runtime.

-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Loading the Foundation at runtime (From: Mathieu Suen <email@hidden>)
 >Re: Loading the Foundation at runtime (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Loading the Foundation at runtime
  • Next by Date: Re: @property and Garbage Collection
  • Previous by thread: Re: Loading the Foundation at runtime
  • Next by thread: Re: Loading the Foundation at runtime
  • Index(es):
    • Date
    • Thread