nanotime()
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