Simple question:
I have created a bunch of C helper routines and am trying to include them in a project. I had assumed something like the following would be ok.
MyFuncs.h
typedef struct { float n; } MyStruct; float Operation(MyStruct ms); MyFuncs.m
#import "MyFuncs.h" float Operation(MyStruct ms) { return ms.n * ms.n; } However, I'm getting a linker error "Undefined symbols for architecture i386" and "Operation(MyStruct) referenced from x"
Is there some other way that header/implemenation C files need to be set-up to work?
Note: This is for an iOS project using Xcode 4.5.