Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > .m files taking forever to compile

.m files taking forever to compile
Thread Tools
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Jul 28, 2004, 04:05 PM
 
It's never been an issue before, but for some reason, in a particular project, it's taking each of my .m files forever to compile, upwards of two minutes. This is particularly weird because I'm running on a 1.5 GHz PowerBook G4, and none of the files are over 200 lines long. Even an unmodified main.m is taking that long, and it's spitting out a warning about "passing arg 2 of `NSApplicationMain' from incompatible pointer type." Anyone seen anything like this before/have any ideas what to do about it?
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jul 29, 2004, 09:16 PM
 
The warning is easy to fix. Add a const to the second argument. For the compile times... are you using any optimization flags? They can increase compile times.
     
Junior Member
Join Date: Mar 2003
Location: Walnut Creek, CA
Status: Offline
Reply With Quote
Jul 30, 2004, 02:13 PM
 
Originally posted by Catfish_Man:
The warning is easy to fix. Add a const to the second argument. For the compile times... are you using any optimization flags? They can increase compile times.
Thanks for that, I'll try it.

I finally figured out what the cause of the slow time was; I'd turned on distributed builds, and the network overhead was at least 100x the speedup.
I bring order to chaos. You are in chaos windows, you are the contradiction, a bug wishing to be an OS.
     
Professional Poster
Join Date: Apr 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Jul 30, 2004, 05:35 PM
 
really... that's interesting, I was having similar problems, I'll have to try turning off distributed builds...
The short shall inherit the earth. Just you wait. You won't see us coming. We'll pop out from under tables, beds, and closets in hordes. So you're tall, huh? You won't be so tall when I chew off your ankles. Mofo
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2