View Single Post

Member Since: Mar 27, 2007
Posts: 3
jaysonturner is on a distinguished road
Mac Specs: MacBook 2Ghz Core2Duo

jaysonturner is offline

Thought I'd have a bash at a bit of Carbon today, but Xcode keeps moaning. Ive made this simple program to print the current time.

#include <stdio.h>
#include <CoreFoundation/CoreFoundation.h>

int main (int argc, const char * argv[]) {
	CFAbsoluteTime time;
	time = CFAbsoluteTimeGetCurrent();
	printf("%d", time);
    return 0;
Now, with ZeroLink on, i get this error at runtime.

ZeroLink: unknown symbol '_CFAbsoluteTimeGetCurrent'
Test has exited due to signal 6 (SIGABRT).

But with ZeroLink off, i get

Undefined symbols:

at compile time...

I've obviously missed something, any help would be nice
QUOTE Thanks