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: 1445674" data-attributes="member: 265753"><p>Hi Ashwin,</p><p></p><p>Thank you for your really long reply<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>As for "compile without building", I mean the process that you compile the source file, generate the .obj file but don't link them, so no executables are generated. I mainly use this for grammatical check. (Seems that Xcode does this as I'm typing? Will that kind of check work in complex situations - I mean, will Xcode point out all errors in syntax?) I previously worked on Dev C++ on PC, and there was the option to compile, OR build. If my memory doesn't fail me, it usually takes five to six times longer to build a project than to compile it...</p><p></p><p>Anyway, I'm merely a college undergraduate and an amateur coder, so it typically take no longer than half a minute to build my projects.<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> The waiting time becomes annoying only in the debugging process. Well, neither compiling without building nor running without rebuilding helps in debugging, though, unless I miss the bug and have to step into the same executable again...<img src="/mac_images/images/smilies/Undecided.png" class="smilie" loading="lazy" alt=":\" title="Undecided :\" data-shortname=":\" /></p></blockquote><p></p>
[QUOTE="ZhimingWang, post: 1445674, member: 265753"] Hi Ashwin, Thank you for your really long reply:) As for "compile without building", I mean the process that you compile the source file, generate the .obj file but don't link them, so no executables are generated. I mainly use this for grammatical check. (Seems that Xcode does this as I'm typing? Will that kind of check work in complex situations - I mean, will Xcode point out all errors in syntax?) I previously worked on Dev C++ on PC, and there was the option to compile, OR build. If my memory doesn't fail me, it usually takes five to six times longer to build a project than to compile it... Anyway, I'm merely a college undergraduate and an amateur coder, so it typically take no longer than half a minute to build my projects.;) The waiting time becomes annoying only in the debugging process. Well, neither compiling without building nor running without rebuilding helps in debugging, though, unless I miss the bug and have to step into the same executable again...:\ [/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