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="ZhimingWang" data-source="post: 1444553" data-attributes="member: 265753"><p>First, I'll post my two questions at the very beginning in case you don't want to listen to me nagging about my personal circumstances:</p><p></p><p>1. How to compile without building a .c/.cpp file? Is it possible?</p><p>2. How to run my file without rebuilding? (Seems that Xcode builds the file before running whether or not the file has been built? Don't tell me to export the executable and run, though; I mean is there a command in Xcode...)</p><p></p><p>Environment: Xcode 4.4.1 on Mountain Lion.</p><p></p><p>OK, let me explain in details:</p><p>I'm switching from Dev C++ to Xcode. Yes, this is a silly question, but you know, beginners usually stuck with silly questions...X_X</p><p></p><p>Well, I'm running Xcode 4.4.1 on Mountain Lion. I have the habit to compile codes every several minutes to shorten the annoying debugging process in the end. However, I can't find the compile option. I can choose to build the file (I am working in a project, not a single file), but you know, building takes way more time than compiling, and it is not economical to build each time if the source code is considerably long. So here comes my first question:</p><p></p><p>1. How to compile without building a .c/.cpp file? Is it possible?</p><p></p><p>By the way, when I finished a .c/.cpp file, I Cmd+B to build it and succeeds. But when I Cmd+R to run, before the program started the "Building Succeeds" message appeared on the screen. Does it mean the file underwent the building process again? If it is so, it will waste a considerable amount of time, right? So here comes my second question:</p><p></p><p>2. How to run my file without rebuilding?</p><p></p><p>Thank you in advance of your kind help!<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="ZhimingWang, post: 1444553, member: 265753"] First, I'll post my two questions at the very beginning in case you don't want to listen to me nagging about my personal circumstances: 1. How to compile without building a .c/.cpp file? Is it possible? 2. How to run my file without rebuilding? (Seems that Xcode builds the file before running whether or not the file has been built? Don't tell me to export the executable and run, though; I mean is there a command in Xcode...) Environment: Xcode 4.4.1 on Mountain Lion. OK, let me explain in details: I'm switching from Dev C++ to Xcode. Yes, this is a silly question, but you know, beginners usually stuck with silly questions...X_X Well, I'm running Xcode 4.4.1 on Mountain Lion. I have the habit to compile codes every several minutes to shorten the annoying debugging process in the end. However, I can't find the compile option. I can choose to build the file (I am working in a project, not a single file), but you know, building takes way more time than compiling, and it is not economical to build each time if the source code is considerably long. So here comes my first question: 1. How to compile without building a .c/.cpp file? Is it possible? By the way, when I finished a .c/.cpp file, I Cmd+B to build it and succeeds. But when I Cmd+R to run, before the program started the "Building Succeeds" message appeared on the screen. Does it mean the file underwent the building process again? If it is so, it will waste a considerable amount of time, right? So here comes my second question: 2. How to run my file without rebuilding? Thank you in advance of your kind help!:D [/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