-fastf build problems
-fastf build problems
- Subject: -fastf build problems
- From: "Kirk A. Baker" <email@hidden>
- Date: Tue, 11 Nov 2003 09:19:18 -0800
I'm trying to use -fast (-fastf (I've got C++ code and Obj-C++ code) )
and I am having a problem with undefined symbols and tons of warnings
related to "type punning"
First off, I have a pre-compiled header that seems to work fine with
optimizations turned off.
When building with -fastf, I get a few symbols missing in the link
stage of the build:
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols:
___toupper.6
___tolower.7
_NSMakeSize.116
_NSMakeRange.75
I'm guessing that for some reason the function names are getting
mangled by the Obj-C++ compiler but I cannot tell why. Turning off
optimizations makes the link errors go away.
The "type punning" warnings are numerous and often indicate lines of
code that do not exist. For instance I have one fairly small source
file has the following warning repeated five times:
[long path snipped]/FileSysNavigatorView.m:27: warning: type-punning to
incomplete type might break strict-aliasing rules
Here is the source code to the entire file:
#import "FileSysNavigatorView.h"
#import "OLDataSource.h"
@implementation FileSysNavigatorView
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
{
if (isLocal)
return NSDragOperationNone;
else
return NSDragOperationGeneric | NSDragOperationCopy |
NSDragOperationMove | NSDragOperationDelete;
}
- (BOOL)ignoreModifierKeysWhileDragging
{
return NO;
}
- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation
{
if (operation == NSDragOperationDelete) { // moved to trash
OLDataSource * dataSource = (OLDataSource *)[self delegate];
[dataSource moveDraggedItemsToTrash];
}
}
<-- here is where the warning is indicated
@end
Any ideas as to what is going on here or how I can avoid such warnings?
Thanks,
-Kirk
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.