Path of a Lib file???

darpan

Registered
I have to use the following API

extern OSErr FSpCreate(
const FSSpec * spec,
OSType creator,
OSType fileType,
ScriptCode scriptTag )

I have declared the following
FSSpec *spec;
spec->vRefNum=0;
spec->parID=2;
unsigned char filename[64]="Aman";
spec->name=filename;
OSType creator="PTul";
OSType fileType="Sd2f";
ScriptCode scriptTag="smSystemScript";

I have include the path Of "Files.h" in Project Settings--Includepath

There is no error upto this point But when i call the FSpCreate(spec,creator,fileType,scriptTag);
then there is following error :-

ld: form3.o illegal reference to symbol: _FSpCreate defined in indirectly referenced dynamic library /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore

I have to include the CarbonLib 1.0 but this lib file available in more than one folder.Which Path should I have to include? Plz help me.

Thanks and Regards
 
Back
Top