Re: YACWP (Yet Another CodeWarrior Port)
Re: YACWP (Yet Another CodeWarrior Port)
- Subject: Re: YACWP (Yet Another CodeWarrior Port)
- From: Chris Espinosa <email@hidden>
- Date: Thu, 16 Jun 2005 17:19:58 -0700
On Jun 16, 2005, at 2:19 PM, Nick Nallick wrote: 1) I added a header search path to the project but it had no effect. When I examined the arguments passed to the compiler this path wasn't being passed to the compiler. I had to add the path to the target for it to work. What is purpose of this setting in the project?
You set it in the project if you want it inherited unchanged by all targets, or augmented in a target that uses $(value) to refer to the project-level setting. 2) I weak link a number of API's and test for their presence at runtime in the following manner. This produces a warning similar to the following. What is the proper way to do this without optimizing out my test?
if (vImageConvolve_ARGB8888) { }
warning: the address of vImageConvolve_ARGB8888() will always evaluate as 'true' (note: this full message is too long for the display view and gets clipped on the right side)
You need to do if (vImageConvolve_ARGB8888 != NULL), see the SDKExample sample project. 3) Frequently when I'm editing a file, I'll hit cmd-K to compile that one file and check for errors. When I compile a single file with the "Compile" menu command the compiler will frequently miss errors and report "Build succeeded". When I use the build command to compile the file the errors will be reported. What am I doing wrong?
This is a known bug if your sources are "up and over" from your Xcode project file. We're working on it. 4) CodeWarrior allows files to be saved automatically before compiling. Is there a setting in Xcode to allow this?
Yes, in the Xcode Preferences, Building tab. 5) Is there any way to turn the objective-c compiler on and off within in a C++ file (e.g., #pragma objective_c on)?
No, compiler semantics are on a per-file granularity. 6) How do I tell if the objective-c compiler is active (e.g., #if __option(objective_c))?
7) How do I include toolbox rez files in my rez files? I've tried it with and without framework style references (see below). Do I need to include these system files in my project somehow or set up a rez search path?
SysError 2 during open of "ApplicationServices/AEUserTermTypes.r". SysError 2 during open of "AE/AEUserTermTypes.r". SysError 0 during open of "AEUserTermTypes.r".
If you just #include <ApplicationServices/ApplicationServices.r> all the rest should come along. Search paths are set up automatically if you include ApplicationServices.framework in your project. 8) Is there a more legitimate way to dereference and increment a pointer by a size other than it's native size than what I'm doing in the following?
UInt8* ptr = something; UInt32 value = *((UInt32*) ptr)++;
warning: target of assignment not really an lvalue; this will be a hard error in the future gcc is kicking about the *( )++. You can't increment a dereference, because the address of the dereference is a register, and you can't take the address of a register.
ptr = (UInt8*) ((UInt32*) ptr + 1); UInt32 value = *((UInt32*) ptr);
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden