-   Linux - Software (
-   - cause error in ns-2.34 in (

priyjumnani 09-12-2012 03:40 AM cause error in ns-2.34 in
thats what the error could you please help me to resolve

mympeg/ In constructor ‘myUdpAgent::myUdpAgent()’:
mympeg/ error: cannot call constructor ‘myUdpAgent::UdpAgent’ directly
mympeg/ error: for a function-style cast, remove the redundant ‘::UdpAgent’
mympeg/ In member function ‘virtual void myUdpAgent::sendmsg(int, AppData*, const char*)’:
mympeg/ error: ‘getFrameType’ was not declared in this scope
mympeg/ error: ‘getFrameType’ was not declared in this scope
Makefile:93: recipe for target `mympeg/myudp.o' failed
make: *** [mympeg/myudp.o] Error 1

knudfl 09-12-2012 06:13 AM

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

Which version of Ubuntu are you using ?


jschiwal 09-20-2012 07:12 AM

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 11:57 PM.