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
|