LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-08-2012, 10:36 AM   #1
lovsis
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.
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]

Last edited by lovsis; 12-09-2012 at 11:03 AM. Reason: bad editing
 
Old 12-09-2012, 04:10 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
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.

.

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

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


Reply

Tags
c++


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 12:27 AM
sys/types.h & linux/types.h conflict while compiling johnnyhal Linux - Software 1 12-28-2008 06:39 PM
invalid types ‘int[int]’ for array subscript medha Programming 16 08-25-2006 08:30 AM
i get an error ./term.c :95 error conflicting types of tpam when compiling bitchx eveningblush Programming 0 03-30-2006 06:46 AM
invalid types int[int] for array subscript scuzzman Programming 2 11-16-2004 09:34 PM


All times are GMT -5. The time now is 10:46 AM.

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