Idris M. Umar
2018-11-13 11:07:15 UTC
Good day to all,
I wanted to read the public members "get_credit_count()" in OutVcStatec class from the RoutingUnit class using the code lines below
OutVcState element;
int credit_size = element.get_credit_count();
but receives the error underneath:
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc: In member function 'int RoutingUnit::outportComputeXY(RouteInfo, int, PortDirection)':
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:188:5: error: 'OutVcState' was not declared in this scope
OutVcState element;
^
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:189:21: error: 'element' was not declared in this scope
int credit_size = element.get_credit_count();
^
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:189:6: error: unused variable 'credit_size' [-Werror=unused-variable]
int credit_size = element.get_credit_count();
^
cc1plus: all warnings being treated as errors
scons: *** [build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.o] Error 1
scons: building terminated because of errors.
I tried to read instead from the OutputUnit class but receives the following error:
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc: In member function 'int RoutingUnit::outportComputeXY(RouteInfo, int, PortDirection)':
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:187:16: error: aggregate 'OutputUnit element' has incomplete type and cannot be defined
OutputUnit element;
^
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:188:6: error: unused variable 'credit_size' [-Werror=unused-variable]
int credit_size = element.get_credit_count(OBJECT);
^
[ CXX] Garnet_standalone/python/_m5/param_GarnetNetworkInterface.cc -> .o
cc1plus: all warnings being treated as errors
scons: *** [build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.o] Error 1
scons: building terminated because of errors.
NOTE: I tried using the friend class, but it still failed to compile, whereas I have no problem with other classes like flitBuffer.
Can someone please help?
Idris Umar
ABU, Zaria - Nigeria.
I wanted to read the public members "get_credit_count()" in OutVcStatec class from the RoutingUnit class using the code lines below
OutVcState element;
int credit_size = element.get_credit_count();
but receives the error underneath:
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc: In member function 'int RoutingUnit::outportComputeXY(RouteInfo, int, PortDirection)':
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:188:5: error: 'OutVcState' was not declared in this scope
OutVcState element;
^
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:189:21: error: 'element' was not declared in this scope
int credit_size = element.get_credit_count();
^
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:189:6: error: unused variable 'credit_size' [-Werror=unused-variable]
int credit_size = element.get_credit_count();
^
cc1plus: all warnings being treated as errors
scons: *** [build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.o] Error 1
scons: building terminated because of errors.
I tried to read instead from the OutputUnit class but receives the following error:
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc: In member function 'int RoutingUnit::outportComputeXY(RouteInfo, int, PortDirection)':
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:187:16: error: aggregate 'OutputUnit element' has incomplete type and cannot be defined
OutputUnit element;
^
build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.cc:188:6: error: unused variable 'credit_size' [-Werror=unused-variable]
int credit_size = element.get_credit_count(OBJECT);
^
[ CXX] Garnet_standalone/python/_m5/param_GarnetNetworkInterface.cc -> .o
cc1plus: all warnings being treated as errors
scons: *** [build/Garnet_standalone/mem/ruby/network/garnet2.0/RoutingUnit.o] Error 1
scons: building terminated because of errors.
NOTE: I tried using the friend class, but it still failed to compile, whereas I have no problem with other classes like flitBuffer.
Can someone please help?
Idris Umar
ABU, Zaria - Nigeria.