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
Objective-C help
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="Raz0rEdge" data-source="post: 1240717" data-attributes="member: 110816"><p>I tried this code snippet on my Ubuntu machine and it worked fine with GCC 4.4.5, I even change the "[Greeter new]" to "[Greeter alloc]" and that worked fine too..</p><p></p><p>Make the same change and see if it works any better for you..</p><p></p><p>[CODE]</p><p>$ gcc -lobjc t1.m -o t1</p><p>$ ./t1</p><p>Hello, World!</p><p>$ gcc --version</p><p>gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5</p><p>$</p><p>[/CODE]</p><p></p><p>Regards</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1240717, member: 110816"] I tried this code snippet on my Ubuntu machine and it worked fine with GCC 4.4.5, I even change the "[Greeter new]" to "[Greeter alloc]" and that worked fine too.. Make the same change and see if it works any better for you.. [CODE] $ gcc -lobjc t1.m -o t1 $ ./t1 Hello, World! $ gcc --version gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5 $ [/CODE] Regards [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Objective-C help
Top