Noob Objective-C/C++ - Linker Problem/Function Def Problem
- by Josh
There is a static class Pipe, defined in C++ header that I'm including.
The function I'm interested in calling (from Objetive-c) is here:
static ERC SendUserGet(const UserId &_idUser,const GUID &_idStyle,const ZoneId &_idZone,const char *_pszMsg);
I have access to an objetive-c data structure that appears to store a copy of userID, and zoneID -- it looks like:
@interface DataBlock : NSObject
{
GUID userID;
GUID zoneID;
}
Looked up the GUID def, and its a struct with a bunch of overloaded operators for equality. UserId and ZoneId from the first function signature are #typedef GUID
Now when I try to call the function, no matter how I cast it (const UserId), (UserId), etc, I get the following linker error:
"Pipe::SendUserGet(_GUID const&, _GUID const&, _GUID const&, char const*)", referenced from:
-[PeoplePaneController clickGet:] in PeoplePaneController.o
Is this a type/function signature error, or truly some sort of linker error? I have the headers where all these types and static classes are defined #imported -- I tried #include too, just in case, since I'm already stumbling :P
Forgive me, I come from a web tech background, so this c-style memory management and immutability stuff is super hazy.
Thanks,
Josh