FROM : Roland Silver
DATE : Fri Jan 04 16:02:49 2008
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_removed>
DATE : Fri Jan 04 16:02:49 2008
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_removed>
| Related mails | Author | Date |
|---|---|---|
| Roland Silver | Jan 4, 16:02 | |
| Jean-Daniel Dupas | Jan 4, 16:15 | |
| Filipe Varela | Jan 4, 16:30 |






Cocoa mail archive

