Where to put #define MIT_uAMPS?
Problem:
Where do you put the #define MIT_uAMPS? Without it, the additional files, such as mit/rca/rcagent.cc cannot compile, since it needs the additional definition of PT_RCA in common/packet.h
Added #define MIT_uAMPS in:
Fix:
Figured out that defines can be put in Makefiles. I simply added
and added $(DEFINE_MIT) to the end of:
Problem:
Where do you put the #define MIT_uAMPS? Without it, the additional files, such as mit/rca/rcagent.cc cannot compile, since it needs the additional definition of PT_RCA in common/packet.h
mit/uAMPS -o mit/rca/rcagent.o mit/rca/rcagent.cc
mit/rca/rcagent.cc: In constructor `RCAgent::RCAgent()':
mit/rca/rcagent.cc:33: error: `PT_RCA' undeclared (first use this function)
mit/rca/rcagent.cc:33: error: (Each undeclared identifier is reported only once
for each function it appears in.)
Added #define MIT_uAMPS in:
- common/packet.h
- common/tclAppInit.cc
- removed all #defines and put in makefile
Fix:
Figured out that defines can be put in Makefiles. I simply added
DEFINE_MIT = -DMIT_uAMPS
and added $(DEFINE_MIT) to the end of:
DEFINE = -DTCP_DELAY_BIND_ALL -DNO_TK @V_DEFINE@ @V_DEFINES@ @DEFS@ -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=@CPP_NAMESPACE@ -DUSE_SINGLE_ADDRESS_SPACE -Drng_test
0 Comments:
Post a Comment
<< Home