[futurebasic] Re: [FB] [FBtoC] Precompiled header failure

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2010 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Tue, 27 Apr 2010 11:25:57 +1200
Ken Shmidheiser wrote:

> Robert  Purves exlained:
>> Place this near the top of your source code:
>>  include library "AudioToolbox/AudioServices.h"
>> That should fix link errors.

> Does a user still have to manually link to the framework in FBtoC using a library include?

include library "Foo/Foo.h"
does two things. First, it adds this to the translated C code:
#include <Foo/Foo.h>
so that the compiler knows about the functions declared Foo.h.

Second, it adds
 -framework Foo
to the linker invocation, so that the linker can find the library executable.

Robert P.