thanks for all replies
MacDot16ServiceFlowDirection is variable defined as
Code:
typedef enum
{
DOT16_UPLINK_SERVICE_FLOW = 0,
DOT16_DOWNLINK_SERVICE_FLOW = 1,
}MacDot16ServiceFlowDirection;
i used the pointer to call MacDot16SsAddServiceFlow function & similar to other functions which are defined in other cpp files & included header which declare them
when i run the following code
Code:
for (i = 0; i < numFlows; i++)
{
if (MacDot16ServiceFlowDirection == DOT16_UPLINK_SERVICE_FLOW;) //line 118
MacDot16ServiceFlow* MacDot16SsAddServiceFlow;
if (MacDot16ServiceFlowDirection == DOT16_DOWNLINK_SERVICE_FLOW;)
MacDot16ServiceFlow* MacDot16BsAddServiceFlow;
}
if (bwAll < minReservedRate)
MacDot16SsScheduleBandwidthRequest;
if (bwAll > minReservedRate)
tempBwReq = MacDot16Ss.outScheduler[
MacDot16SsBWReqRecord->serviceFlowIndex - 1]
->bytesInQueue(MacDot16SsBWReqRecord->queuePriority);
MacDot16ServiceFlow->bwRequested = tempBwReq;
i get the following errors
Code:
n.cpp(118) : error C2059: syntax error : '=='
n.cpp(118) : error C2143: syntax error : missing ';' before ')'
n.cpp(121) : error C2059: syntax error : '=='
n.cpp(121) : error C2143: syntax error : missing ';' before ')'
n.cpp(126) : error C2065: 'MacDot16SsScheduleBandwidthRequest' : undeclared identifier
n.cpp(131) : error C2275: 'MacDot16Ss' : illegal use of this type as an expression
s\src\mac_dot16_ss.h(1011) : see declaration of 'MacDot16Ss'
n.cpp(132) : error C2226: syntax error : unexpected type 'MacDot16SsBWReqRecord'
n.cpp(134) : error C2143: syntax error : missing ';' before '->'
n.cpp(134) : error C2143: syntax error : missing ';' before '->'
where could i start correcting these errors? thanks again