Static library

  • 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.
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today