LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   error invalid types (https://www.linuxquestions.org/questions/programming-9/error-invalid-types-4175440590/)

lovsis 12-08-2012 10:36 AM

error invalid types
 
Hello everyone, i am using NS-2.34 to add Adaptive MRAI module but i am getting the following errors in one of file. I am using Ubuntu 12.04, 32bits. Can someone help me fix it please.
Code:

In file included from bgp/Timing/reusableMRAItimer.h:20,
                from bgp/Timing/reusableMRAItimer.cc:2:
bgp/Timing/../rtProtoBGP.h: At global scope:
bgp/Timing/../rtProtoBGP.h:363: error: ‘reusableMRAItimer’ was not declared in this scope
bgp/Timing/../rtProtoBGP.h:363: error: template argument 2 is invalid
bgp/Timing/../rtProtoBGP.h:363: error: template argument 4 is invalid
bgp/Timing/reusableMRAItimer.cc: In member function ‘virtual void reusableMRAItimer::expire(Event*)’:
bgp/Timing/reusableMRAItimer.cc:81: warning: unused variable ‘current_sigma’
bgp/Timing/reusableMRAItimer.cc:150: warning: comparison between signed and unsigned integer expressions
bgp/Timing/reusableMRAItimer.cc:196: error: invalid types ‘int[float]’ for array subscript
bgp/Timing/reusableMRAItimer.cc:197: error: invalid types ‘int[float]’ for array subscript
make: *** [bgp/Timing/reusableMRAItimer.o] Error 1[/PHP]


knudfl 12-09-2012 04:10 AM

BGP - MRAI

Please edit the quoted text from php-code to regular code tags.
I.e. write [/code] at text end, and [code] at text start.
Or use the # button in the 'Advanced Editor'.

The quoted "reusableMRAItimer.cc" : Please delete.
We already have that in ns-2.34-bgp-rfd-mrai.tar.gz
And not readable as quoted text, code tags must be used to preserve indents.

ns-2.34-bgp-rfd-mrai.tar.gz http://www2.ensc.sfu.ca/~ljilja/cnl/...fd-mrai.tar.gz
MRAI http://www2.ensc.sfu.ca/~ljilja/cnl/...-rfd_mrai.html


About your errors : The wrong compiler seems to be used.
Like in your previous BGP post ..
http://www.linuxquestions.org/questi...atch-878984/#4
... you will still have to specify your OS, if you want correct answers.
Name and version please, like {Fedora 17, 64bits}, {Ubuntu 12.04, 32bits}, etc.

.

lovsis 12-09-2012 11:03 AM

Thanks for correcting me, Much appreciated.


All times are GMT -5. The time now is 11:09 PM.