Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Extension .c vs .C in Xcode

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Carbon
Mac Carbon  
Author Message
Jean Jacques



Joined: 01 Jul 2006
Posts: 12

PostPosted: Sat Jul 01, 2006 6:00 pm    Post subject: Extension .c vs .C in Xcode Reply with quote

.c vs .C in Xcode project compilation

"I noticed that the other 3 corresponding code files (all also trivial
object definitions I was using as a test) were called [filename].C
while the code file associated with the non-compiling header file was
called [filename].c - that is, the ones with UPPERCASE C as the
extension would compile while the LOWERCASE .c extension would not
compile.

Changning the .c to a .C allowed this trivial class to compile in XCode
and the header file no longer reported any error."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Thu Jul 06, 2006 9:10 pm    Post subject: Reply with quote

Another surprise: Help needed switching from CW 9 to XCode

"I've been trying to prep a Codewarrior 9 project for conversion to
XCode and I've run into all manner of nasty compile errors. Stuff that
doesn't make any sense."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Wed Sep 27, 2006 10:28 pm    Post subject: Reply with quote

c++ interface book

"In your programs, name your ".m" files with a ".mm" extension. The
compiler recognizes .mm as containing both Objective-C and C++. Objective-C
objects can hold pointers to C++ objects."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Sun Mar 25, 2007 1:05 am    Post subject: Reply with quote

CarbonDev: Compiler Detection

"You can always detect GCC itself with the __GNUC__ macro, and Apple's
GCC with the __APPLE__ macro. The simplest way to detect more specific
diferences is to use the macros provided by TargetConditionals.h."
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Carbon All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group