• 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: Cross compile to 10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross compile to 10.3


  • Subject: Re: Cross compile to 10.3
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 19 Sep 2005 21:53:34 -0700

On Sep 19, 2005, at 7:21 PM, Chris Griffin wrote:

After reading some of the postings on the subject, if I understand correctly all I should have to do to get my project to run on system 10.3 is to choose that as my Deployment Target. I've done that however I'm getting the following error when I run on 10.3.9:

undefined reference to _ftime expected to be defined in /usr/lib/libSystem.B.dylib

Unfortunately in Apple's Darwin headers, when ftime was added to Tiger it wasn't marked with the AvailabilityMacro.h macro to designate it weak-linked when building for systems prior to 10.4. So instead of doing


#include <timeb.h>

you need to define your own ftime function:

#include <AvailabilityMacros.h>
int ftime(struct timeb *) AVAILABLE_MAC_OS_X_10_4_AND_LATER ;
#define _SYS_TIMEB_H_

and probably copy the timeb struct from /usr/include/sys/timeb.h as well.

Please file a bug on this.

Chris

_______________________________________________
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


  • Follow-Ups:
    • Re: Cross compile to 10.3
      • From: Chris Griffin <email@hidden>
References: 
 >Cross compile to 10.3 (From: Chris Griffin <email@hidden>)

  • Prev by Date: Re: Tracing into libraries
  • Next by Date: xcode and fortran
  • Previous by thread: Cross compile to 10.3
  • Next by thread: Re: Cross compile to 10.3
  • Index(es):
    • Date
    • Thread