• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Linking error when building release target (when no error with debug target)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking error when building release target (when no error with debug target)


  • Subject: Linking error when building release target (when no error with debug target)
  • From: Francis Derive <email@hidden>
  • Date: Wed, 1 Aug 2007 13:37:19 +0200

Hi,

That's it : building ( and running ) the debug target is fine, but building the release target gives the error below.

Ld /Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/Release/LangLaunchApp.app/Contents/MacOS/LangLaunchApp normal i386
    mkdir /Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/Release/LangLaunchApp.app/Contents/MacOS
    cd /Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp
    /usr/bin/gcc-4.0 -o /Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/Release/LangLaunchApp.app/Contents/MacOS/LangLaunchApp -L/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/Release -F/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/Release -F/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/../../../Cocoa/StdAppPlugins/IBPalette/FDColorView/FDColorView/build/UninstalledProducts -F/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/../../../Cocoa/StdAppPlugins/IBPalette/FDColorView/FDColorView/build/UninstalledProducts -filelist /Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/LangLaunchApp.build/Release/LangLaunchApp.build/Objects-normal/i386/LangLaunchApp.LinkFileList -framework Cocoa -framework FDColorViewFramework -arch i386 -Wl,-Y,1455 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk

/usr/bin/ld: Undefined symbols:
_AESend
_SetSystemUIMode
/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/LangLaunchApp.build/Release/LangLaunchApp.build/Objects-normal/i386/LangLaunch.o reference to undefined _AESend
/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/LangLaunchApp.build/Release/LangLaunchApp.build/Objects-normal/i386/LangLaunch.o reference to undefined _SetSystemUIMode
/Volumes/DEV/fdiDevWorks/Kiosk/LangSelectAndLaunchApp/LangLaunchApp/build/LangLaunchApp.build/Release/LangLaunchApp.build/Objects-normal/i386/DSAdminWindowController.o reference to undefined _SetSystemUIMode
collect2: ld returned 1 exit status

Can't imagine the reason why the same symbols were known at one time and unknown next time ...

#import "LangLaunch.h"
#include <Carbon/Carbon.h>

@implementation LangLaunch

[...] 

OSErr QuitFinder() {


    int kFinderProcessSignature = 'MACS'; //we target Finder based on its unique signiture.
    OSErr           anErr = paramErr;
    AppleEvent      tAppleEvent = {typeNull,nil};
    AppleEvent tReply;
    AEBuildError    tAEBuildError;


    //Building the Apple event
    anErr = AEBuildAppleEvent(kCoreEventClass, kAEQuitApplication,
typeApplSignature,&kFinderProcessSignature,sizeof(OSType),
kAutoGenerateReturnID,kAnyTransactionID,
&tAppleEvent,&tAEBuildError,"");


    if (noErr == anErr)
    {
        //    Send the event.
        anErr = AESend( &tAppleEvent, &tReply, kAENoReply |
kAENeverInteract, kAENormalPriority, kNoTimeOut, nil, nil );
        // always dispose of AEDescs when you are finished with them
        (void) AEDisposeDesc(&tAppleEvent);
    }
    return anErr;
}

[...]

@end

Many thanks for your help,

Francis


 _______________________________________________
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

  • Prev by Date: Re: Control initialised data layout?
  • Next by Date: Re: How do I include Python.framework?
  • Previous by thread: Re: Broken Pipe
  • Next by thread: Re: How do I include Python.framework?
  • Index(es):
    • Date
    • Thread