• 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
nanotime()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nanotime()


  • Subject: nanotime()
  • From: Roland Silver <email@hidden>
  • Date: Fri, 4 Jan 2008 08:02:49 -0700

Is the GNU C function
void nanotime(struct timespec *ts);
available in some Cocoa framework?
It's defined in <time.h>, but the Scode (3) builder barfs when I try to call it:


int main(int argc, char *argv[]) {
	struct timespec *ts;
	nanotime(&ts);
    return NSApplicationMain(argc,  (const char **) argv);
}

Building target “foo” of project “foo” with configuration “Release” — (1 error)
cd /Users/rollos/foo
/Developer/usr/bin/gcc-4.0 -o /Users/rollos/foo/build/foo.build/ Release/foo.build/Objects-normal/ppc/foo -L/Users/rollos/foo/build/ Release -F/Users/rollos/foo/build/Release -filelist /Users/rollos/foo/ build/foo.build/Release/foo.build/Objects-normal/ppc/foo.LinkFileList - framework Cocoa -arch ppc -mmacosx-version-min=10.5 -isysroot / Developer/SDKs/MacOSX10.5.sdk
Undefined symbols:
"_nanotime", referenced from:
_main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_nanotime", referenced from:
_main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (1 error)


Roland Silver
email@hidden



_______________________________________________

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


  • Follow-Ups:
    • Re: nanotime()
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • Next by Date: Re: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • Previous by thread: Re: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • Next by thread: Re: nanotime()
  • Index(es):
    • Date
    • Thread