• 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: How to convert project from PPC to Universal Binary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert project from PPC to Universal Binary?


  • Subject: Re: How to convert project from PPC to Universal Binary?
  • From: Dan Korn <email@hidden>
  • Date: Tue, 3 Nov 2009 12:31:07 -0600


On Nov 2, 2009, at 4:58 PM, Alan Snyder wrote:

Hmm.... other parts of the code have" #ifdef WINDOWS" around calls
like that, but
not in those two cases. Will need to look into it some more.

On Sat, Oct 31, 2009 at 4:43 PM, David Dunham <email@hidden> wrote:
On 30 Oct 2009, at 17:21, Alan Snyder wrote:

I tried compiling it as per the original documentation but with the
default gcc setting
and two lines with calls to

strcpy_s, and sprintf_s

produce errors like

.... error: 'strcpy_s' undeclared (first use this function).

Aren't those non-standard Microsoft functions?
<http://msdn.microsoft.com/en-us/library/td1esda9(VS.80).aspx> Replace them
with something standard.

Your PPC-only binaries were probably built with the long-defunct CodeWarrior, which had its own C runtime (MSL), which did indeed include many of these Microsoft-isms:
<http://www.inf.pucrs.br/~eduardob//disciplinas/SistEmbarcados/Mobile/Nokia/Tools/Carbide_vs/WINSCW/Release_Notes/CodeWarrior_For_Symbian_OS/MSL_Runtime_Notes/MSL C Release Notes.txt >


So Jen's statement that "I don't think strcpy_s was ever supported on OS X" is not entirely accurate. It's not about whether a particular operating system supports a utility function as much as it's about whether a particular C runtime supports it.

However, as David noted, these are not "standard" C runtime functions, and thus are not included in any of the GCC runtimes which Xcode uses. So I would echo his advice to use more standard functions.

And yep, welcome to the Mac, where you get to port your code every couple of years, and probably buy new hardware too!

Dan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: How to convert project from PPC to Universal Binary? (From: Alan Snyder <email@hidden>)

  • Prev by Date: Re: something wrong with architecture and compiling
  • Next by Date: Re: something wrong with architecture and compiling
  • Previous by thread: Re: How to convert project from PPC to Universal Binary?
  • Next by thread: GC Settings Missing in New FW Projects?
  • Index(es):
    • Date
    • Thread