A Look Inside Address Book
Subject:   Strange Error
Date:   2002-09-09 21:41:06
From:   johnts
I tried entering the sample and I'm getting a strange error. Firstly, I have 10.2, the new dev tools and some entried in my address book on a G4 dual 450. I've added the AddressBook framework to the project and the main.m file is only:
#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>

int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
ABAddressBook *book = [ABAddressBook sharedAddressBook];
NSArray *everyone = [book people];
// insert code here...
NSLog([everyone description]);
[pool release];
return 0;

I compile with no problem (even after cleaning) and when I try to run, I get an error at the bottom:
Run session aborted: No launchable executable present to run.

Don't have a clue. Same sample ran with no problems on my iBook.

1 to 1 of 1
  1. Strange Error ("No launchable executable")
    2002-11-11 14:12:57  gracion [View]

1 to 1 of 1