开发者

Using Functions In External File?

I am new to Xcode and have just gotten to the point wher开发者_Go百科e I am starting to build up a few files that I would like to include in future projects. Currently I am importing the file ...

#import "/Users/Gary/Documents/Xcode/FG_Include/FG_FloatFlip.h"

into my project at...

/Users/Gary/Documents/Xcode/mddStructure_PROJ/mddStructure.m

However I am getting the following error when I try to build.

Undefined symbols:
"_FG_FloatFlip", referenced from:
_main in mddStructure_PROJ.o
ld: symbol(s) not found

I was initially thinking that importing the file would be all I needed, although now I am thinking I might need to do something extra in Xcode to use functions in this external file, maybe linking?

gary


Did you add FG_FloatFlip.h to your Xcode project? I'm pretty sure Xcode only "finds" files added directly to the project. Try dragging the file to your Xcode window, and change it to simply #import "FG_FloatFlip.h".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜