makefile.in cause error in ns-2.34 in myudp.cc
thats what the error could you please help me to resolve
mympeg/myudp.cc: In constructor ‘myUdpAgent::myUdpAgent()’:
mympeg/myudp.cc:19:28: error: cannot call constructor ‘myUdpAgent::UdpAgent’ directly
mympeg/myudp.cc:19:28: error: for a function-style cast, remove the redundant ‘::UdpAgent’
mympeg/myudp.cc: In member function ‘virtual void myUdpAgent::sendmsg(int, AppData*, const char*)’:
mympeg/myudp.cc:56:209: error: ‘getFrameType’ was not declared in this scope
mympeg/myudp.cc:79:209: error: ‘getFrameType’ was not declared in this scope
Makefile:93: recipe for target `mympeg/myudp.o' failed
make: *** [mympeg/myudp.o] Error 1
Welcome to LQ.
The mympeg that I know, is for ns-2.28
You can have as may versions of ns-allinone-2.xx as you want,
installed at the same time. But do not any of them to a *PATH.
The binary ns is hard coded to know the location of it's libraries.
Ubuntu example ns-2.28 :
cd ns-allinone-2.28/ && patch -p1 < ns-2.28-gcc410.patch &&
export CC=gcc41 CXX=g++41 && ./install
gcc41 g++41 http://www.linuxquestions.org/questi...4-a-944856/#14
Which version of Ubuntu are you using ?
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
|All times are GMT -5. The time now is 01:12 AM.|