"matriz could not be resolved"

I need used a array (that is declared in routing.cc) em UDP.cc, already include the routing.h in udp.cc, but when to use occurs the error:

"matriz could not be resolved"

Also already include in the interface (Irouting.h), but continue with the error...

thanks
closed account (o3hC5Di1)
Hi there,

We would need to see your actual code in order to help you.
Can you copy it into this thread (using [code]-tags preferably) please?

All the best,
NwN
routingTable.cc

Define_Module(RoutingTable);

public:
int matrizA[5][5]={0,0,0,0,0,
0,0,0,0,0,
0,0,0,0,0,
0,0,0,0,0,
0,0,0,0,0};


UDP.cc

#include "routingTable.h"

for (int x=0; x <=4; x++)
{ for(int j = 0; j <= 4; j++)
Volume[x]= Volume[x] + matrizA[x][j];


Also already declared in:
routingTable.h

public:
int matrizA[5][5];

But ocurrs the same error
Last edited on
Topic archived. No new replies allowed.