Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Carbon, n00b problem :)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jaysonturner" data-source="post: 357808" data-attributes="member: 29088"><p>Hi,</p><p></p><p>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.</p><p></p><p>[CODE]</p><p>#include <stdio.h></p><p>#include <CoreFoundation/CoreFoundation.h></p><p></p><p>int main (int argc, const char * argv[]) {</p><p> </p><p> CFAbsoluteTime time;</p><p> time = CFAbsoluteTimeGetCurrent();</p><p> </p><p> printf("%d", time);</p><p> return 0;</p><p>}</p><p>[/CODE]</p><p></p><p>Now, with ZeroLink on, i get this error at runtime.</p><p></p><p>ZeroLink: unknown symbol '_CFAbsoluteTimeGetCurrent'</p><p>Test has exited due to signal 6 (SIGABRT).</p><p></p><p></p><p>But with ZeroLink off, i get</p><p></p><p>Undefined symbols:</p><p>_CFAbsoluteTimeGetCurrent</p><p></p><p>at compile time...</p><p></p><p>I've obviously missed something, any help would be nice <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="jaysonturner, post: 357808, member: 29088"] Hi, 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. [CODE] #include <stdio.h> #include <CoreFoundation/CoreFoundation.h> int main (int argc, const char * argv[]) { CFAbsoluteTime time; time = CFAbsoluteTimeGetCurrent(); printf("%d", time); return 0; } [/CODE] 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: _CFAbsoluteTimeGetCurrent at compile time... I've obviously missed something, any help would be nice :) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Carbon, n00b problem :)
Top