LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   makefile.in cause error in ns-2.34 in myudp.cc (http://www.linuxquestions.org/questions/linux-software-2/makefile-in-cause-error-in-ns-2-34-in-myudp-cc-4175426813/)

priyjumnani 09-12-2012 02:40 AM

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

knudfl 09-12-2012 05:13 AM

Welcome to LQ.

The mympeg that I know, is for ns-2.28
http://140.116.164.80/~smallko/ns2/m...o-ns2.28.patch
Ref. http://hpds.ee.ncku.edu.tw/~smallko/...vid_in_NS2.htm

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
Ref. http://www.linuxquestions.org/questi...10-a-867404/#7
gcc41 g++41 http://www.linuxquestions.org/questi...4-a-944856/#14

Which version of Ubuntu are you using ?

.

jschiwal 09-20-2012 06: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 12:04 AM.