Hello everyone
I have a cpp project which has a struct defined in header file as
Code:
namespace ZWApi {
struct ZWNode {
int typeBasic;
int typeGeneric;
int typeSpecific;
bool sleepingDevice;
int plutoDeviceTemplateConst;
int stateBasic;
time_t pingtime;
std::string associationList[4];
};
}
I have a C file which needs this struct.i want to call ZWNode struct in c and create a struct called pNode.
So far I have managed to link cpp and c files...Now i am trying to create the new struct pNode as
struct ZWApi::ZWNode pNode;
but i am having an error :error: expected identifier or ‘(’ before ‘:’ token
struct ZWApi::ZWNode pNode;
WHat am I doing wrong...I hope i made my problem clear..any suggestions appreciated...thankss