Re: error building against sdk 10.5

2008-07-22 Thread g biss


On Jul 22, 2008, at 1:29 PM, Tony Becker wrote:


I'm going to make some assumptions here...

This is a project that "works" under 10.4 and has compile errors  
when the SDK is "switched" to 10.5


Thanks Tony,

These are 10.5 projects that don't work under 10.5, where the compile  
errors go away when "switched" to 10.4.


I reproduce this consistently with new projects, from scratch,  
generated by Xcode and untouched.  They don't compile for me unless I  
set the SDK to 10.4.


Sorry to drag down this list with compile issues. . . I just  
subscribed to the xcode-users list and will take this thread over there.





Go into your "Targets" and select your application, or the first  
dependancy of your target that doesn't build

Double click on the target to get the info screen.
Go to the build tab and look for anything else that is set to 10.4,  
or the 10.4 SDK.
Sometimes, as you develop, the SDK gets "hard coded" into the  
project, rather then a token.
Sometimes, assumptions are made in the project and there are other  
settings that need to change too.


I really don't see anything that says 10.4 on that tab . . .  I wish I  
did so I could leave this behind.


Thanks again!




Mixing the SDK's headers can produce the compile errors you've seen.
Look at the quoted search paths at the very bottom too...

On Jul 22, 2008, at 4:15 PM, Nick Zitzmann wrote:



On Jul 22, 2008, at 2:12 PM, g biss wrote:


This I don't know.  The installer put it there?



Not on my system, it didn't. DictionaryServices is supposed to be  
part of the CoreServices framework.


Nick Zitzmann
<http://www.chronosnet.com/>

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/aebecker%40mac.com

This email sent to [EMAIL PROTECTED]




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: error building against sdk 10.5

2008-07-22 Thread g biss


On Jul 22, 2008, at 12:49 PM, Nick Zitzmann wrote:



On Jul 22, 2008, at 1:40 PM, g biss wrote:

Developer/SDKs/MacOSX10.5.sdk/System/Libary/Frameworks/ 
DictionaryServices.framework/Headers/DictionaryServices.h:83:  
error: syntax error before 'CTFontRef'



How did DictionaryServices get moved there? It's supposed to be  
inside the CoreServices framework,


This I don't know.  The installer put it there?

I run uninstall-devtools.pl and then run the installer.  What would  
prevent the installer from putting this in its correct place?




and it currently doesn't have 83 lines in it.


This I do know.  I put each argument to the offending method  
definition on a different line in the hope that I might be able to  
glean  more information or see more clearly what the "syntax error"  
might be :-)
But I got the same error before making this change and am still  
getting it now that I've undone this change.





Nick Zitzmann
<http://www.chronosnet.com/>



Nick, hanks for your reply, I really appreciate any help I can get here.

   - gary
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


error building against sdk 10.5

2008-07-22 Thread g biss

Hello List,

In Xcode 3.1, I create a new cocoa project and build. When the default  
menu item

"Project->Set Active SDK->Mac OS 10.5 (Project Settings)"
is selected, I get this build error:
/
Developer/SDKs/MacOSX10.5.sdk/System/Libary/Frameworks/ 
DictionaryServices.framework/Headers/DictionaryServices.h:83: error:  
syntax error before 'CTFontRef'


The project compiles with no problems with active sdk changed to  
"Project->Set Active SDK->Mac OS 10.4"


I've uninstalled and reinstalled Xcode 3.1 a couple of times.

Any ideas?

   - gary

--build  
results


cd /CocoaTest
/Developer/usr/bin/gcc-4.0 -x objective-c-header -arch i386 - 
fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm- 
blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/ 
MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 - 
iquote /CocoaTest/build/CocoaTest.build/Debug/CocoaTest.build/ 
CocoaTest-generated-files.hmap -I/CocoaTest/build/CocoaTest.build/ 
Debug/CocoaTest.build/CocoaTest-own-target-headers.hmap -I/CocoaTest/ 
build/CocoaTest.build/Debug/CocoaTest.build/CocoaTest-all-target- 
headers.hmap -iquote /CocoaTest/build/CocoaTest.build/Debug/ 
CocoaTest.build/CocoaTest-project-headers.hmap -F/CocoaTest/build/ 
Debug -I/CocoaTest/build/Debug/include -I/CocoaTest/build/ 
CocoaTest.build/Debug/CocoaTest.build/DerivedSources -c /CocoaTest/ 
CocoaTest_Prefix.pch -o /var/folders/rl/rlAAO2yZHKG6V94YOfUvCU+++TM/- 
Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/CocoaTest_Prefix- 
ftxnjbzwehblnshastvbusvrwtsi/CocoaTest_Prefix.pch.gch
In file included from /Developer/SDKs/MacOSX10.5.sdk/System/Library/ 
Frameworks/CoreServices.framework/Headers/CoreServices.h:49,
 from /Developer/SDKs/MacOSX10.5.sdk/System/Library/ 
Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h: 
20,
 from /Developer/SDKs/MacOSX10.5.sdk/System/Library/ 
Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
 from /Developer/SDKs/MacOSX10.5.sdk/System/Library/ 
Frameworks/Foundation.framework/Headers/Foundation.h:107,
 from /Developer/SDKs/MacOSX10.5.sdk/System/Library/ 
Frameworks/Cocoa.framework/Headers/Cocoa.h:12,

 from /CocoaTest/CocoaTest_Prefix.pch:6:
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ 
DictionaryServices.framework/Headers/DictionaryServices.h:83: error:  
syntax error before 'CTFontRef'

 from /CocoaTest/CocoaTest_Prefix.pch:6:
			 from /Developer/SDKs/MacOSX10.5.sdk/System/Library/ 
Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
 from /Developer/SDKs/MacOSX10.5.sdk/System/ 
Library/Frameworks/Foundation.framework/Headers/Foundation.h:107,
	 from /Developer/SDKs/MacOSX10.5.sdk/System/ 
Library/Frameworks/Foundation.framework/Headers/ 
NSAppleEventDescriptor.h:8,
		 from /Developer/SDKs/MacOSX10.5.sdk/System/ 
Library/Frameworks/ApplicationServices.framework/Headers/ 
ApplicationServices.h:20,
			In file included from /Developer/SDKs/MacOSX10.5.sdk/System/ 
Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:49,
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ 
DictionaryServices.framework/Headers/DictionaryServices.h:83: error:  
syntax error before 'CTFontRef'

Build failed (1 error)
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]