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
How to compile (without building) a .c/.cpp file with Xcode?
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="cptkrf" data-source="post: 1533716" data-attributes="member: 134861"><p>You can drop to a terminal and just compile the c/cpp source with GCC just as if you were on a plain Unix or Linux machine.</p><p></p><p>In fact, if you are making c/cpp programs you don't need Xcode at all, just download the Command Line Utilities and use textedit for the source. (Note. if you are making gui obj-c stuff, you have to have Xcode.)</p><p></p><p>The simplest compile will be with the gcc command and the source file name. i.e. gcc helloworld.c</p><p></p><p>man gcc will give you the manual for the options.</p></blockquote><p></p>
[QUOTE="cptkrf, post: 1533716, member: 134861"] You can drop to a terminal and just compile the c/cpp source with GCC just as if you were on a plain Unix or Linux machine. In fact, if you are making c/cpp programs you don't need Xcode at all, just download the Command Line Utilities and use textedit for the source. (Note. if you are making gui obj-c stuff, you have to have Xcode.) The simplest compile will be with the gcc command and the source file name. i.e. gcc helloworld.c man gcc will give you the manual for the options. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to compile (without building) a .c/.cpp file with Xcode?
Top