Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-08-2012, 11:36 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
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.
 In file included from bgp/Timing/reusableMRAItimer.h:20,
                 from bgp/Timing/
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/ In member function ‘virtual void reusableMRAItimer::expire(Event*)’:
bgp/Timing/ warning: unused variable ‘current_sigma’
bgp/Timing/ warning: comparison between signed and unsigned integer expressions
bgp/Timing/ error: invalid types ‘int[float]’ for array subscript
bgp/Timing/ error: invalid types ‘int[float]’ for array subscript
make: *** [bgp/Timing/reusableMRAItimer.o] Error 1[/PHP]

Last edited by lovsis; 12-09-2012 at 12:03 PM. Reason: bad editing
Old 12-09-2012, 05:10 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318

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 "" : 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.


About your errors : The wrong compiler seems to be used.
Like in your previous BGP post ..
... 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.


Last edited by knudfl; 12-09-2012 at 05:15 AM.
Old 12-09-2012, 12:03 PM   #3
LQ Newbie
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for correcting me, Much appreciated.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid operands of types ‘<unresolved overloaded function type>’ and ‘double’ to jus71n742 Programming 2 01-05-2009 01:27 AM
sys/types.h & linux/types.h conflict while compiling johnnyhal Linux - Software 1 12-28-2008 07:39 PM
invalid types ‘int[int]’ for array subscript medha Programming 16 08-25-2006 09:30 AM
i get an error ./term.c :95 error conflicting types of tpam when compiling bitchx eveningblush Programming 0 03-30-2006 07:46 AM
invalid types int[int] for array subscript scuzzman Programming 2 11-16-2004 10:34 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration