Static library
Static library
- Subject: Static library
- From: <email@hidden>
- Date: Wed, 18 Oct 2006 9:29:09 -0400
- Sensitivity: Normal
I have just recently upgraded to Xcode 2.4 from Project Builder. I am new to Xcode. I have built a test static library with Xcode with the following protocol in the static library:
@protocol common_Procedures
- (void)textIsTooLongMessage:(NSWindow *)messageWindow;
@end
The static library is build with the "-ObjC" flag on in the "Other Linker Flags" setting.
_______
My test header looks like:
#import <Cocoa/Cocoa.h>
#import "Library.h"
@protocol common_Procedures;
@interface MyDocument : NSDocument
{
IBOutlet id processCompanyWindowOutlet;
IBOutlet NSButton *testButton;
}
- (IBAction)button_Action:(id)sender;
@end
________
My .m action looks like:
- (IBAction)button_Action:(id)sender
{
extern Protocol* common_Procedures;
NSLog(@"button_Action");
[common_Procedures textIsTooLongMessage:processCompanyWindowOutlet];
}
The static library is in the target of the test project.
The "Perform Single Object Pre_Link" flag is checked in the test project.
The "Single Object Prelink flags" is set to: GENERATE_MASTER_OBJECT_FILE=YES
"Zero Link" is unchecked.
I have examined the related Pre-Link Library build setting and it has "$(inherited)" in the setting when I edit the setting. I am not sure where this is coming from or whether it should be blank?
_____
I am getting the following build error, which I cannot seem to resolve. Any help would be greatly appreciated.
Building target “testb” of project “testb” with configuration “Debug” — (1 error)
cd /Volumes/Rocstor/johnmacmullin/Desktop/testb
/usr/bin/ld -r -arch ppc GENERATE_MASTER_OBJECT_FILE=YES /Volumes/Rocstor/johnmacmullin/Desktop/testb/build/testb.build/Debug/testb.build/Objects-normal/ppc/MyDocument.o /Volumes/Rocstor/johnmacmullin/Desktop/testb/build/testb.build/Debug/testb.build/Objects-normal/ppc/main.o -o /Volumes/Rocstor/johnmacmullin/Desktop/testb/build/testb.build/Debug/testb.build/Objects-normal/testb-ppc-master.o
/usr/bin/ld: can't open: GENERATE_MASTER_OBJECT_FILE=YES (No such file or directory, errno = 2)
/usr/bin/ld: can't open: GENERATE_MASTER_OBJECT_FILE=YES (No such file or directory, errno = 2)
/usr/bin/ld: can't open: GENERATE_MASTER_OBJECT_FILE=YES (No such file or directory, errno = 2)
Build failed (1 error)
_________
It looks like the linker is looking at the "Single Object Prelink flags" setting for a path?
The mailing list archive does not appear to address the issue.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden