• 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: Get the CPU architecture of the local m/c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the CPU architecture of the local m/c


  • Subject: Re: Get the CPU architecture of the local m/c
  • From: Scott Thompson <email@hidden>
  • Date: Wed, 26 Sep 2007 14:21:10 -0500


On Sep 26, 2007, at 2:04 PM, deepak gopal wrote:

Hi

I am trying to get the CPU architecture of the local m/c using

#import <mach-o/arch.h>

NXArchInfo *info = NXGetLocalArchInfo();

But I am getting a warning which says "initialization discards qualifiers from pointer target type". What does this mean?

Probably that the routine in question returns a const NXArchInfo pointer. Try:


const NXArchInfo *info = NXGetLocalArchInfo().
_______________________________________________

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: 
 >Get the CPU architecture of the local m/c (From: deepak gopal <email@hidden>)

  • Prev by Date: Re: Get the CPU architecture of the local m/c
  • Next by Date: Re: creating classes on the fly ??
  • Previous by thread: Re: Get the CPU architecture of the local m/c
  • Next by thread: Re: Related projects and version control
  • Index(es):
    • Date
    • Thread