compile error inetmanet 2.0

106 views
Skip to first unread message

tas Tk

unread,
Nov 8, 2014, 6:37:24 AM11/8/14
to omn...@googlegroups.com
Hi i tried importing inetmanet 2.0 in Omnet++ 4.5 (i also have inet 2.5.0)

but when compiling i get 2 errors

Description
variable length array of non-POD element type 'MACAddress' hwmp.cc /inetmanet-2.0/src/linklayer/ieee80211mesh/hwmp line 1670 C/C++ Problem

variable length array of non-POD element type 'MACAddress' hwmp.cc /inetmanet-2.0/src/linklayer/ieee80211mesh/hwmp line 1717 C/C++ Problem


any help??
thanks

tas Tk

unread,
Nov 8, 2014, 9:09:08 AM11/8/14
to omn...@googlegroups.com
to be more specific

Description
variable length array of non-POD element type 'MACAddress' hwmp.cc /inetmanet-2.0/src/linklayer/ieee80211mesh/hwmp line 1670 C/C++ Problem

variable length array of non-POD element type 'MACAddress' hwmp.cc /inetmanet-2.0/src/linklayer/ieee80211mesh/hwmp line 1717 C/C++ Problem

for     MACAddress addr[m_unicastPreqThreshold];

both errors the same

tas Tk

unread,
Nov 8, 2014, 10:06:56 AM11/8/14
to omn...@googlegroups.com
I temporarily changed  MACAddress addr[m_unicastPreqThreshold]; to  MACAddress addr[1];

because its the default value and its ok it compiled everything without a problem but i don't know if it is a solution..??!


On Saturday, November 8, 2014 1:37:24 PM UTC+2, tas Tk wrote:

Alfonso Ariza Quintana

unread,
Nov 10, 2014, 3:37:13 AM11/10/14
to omn...@googlegroups.com

It is strange, I can compile the code without problems in windows and linux

--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted
Message has been deleted

Parag Sewalkar

unread,
Feb 17, 2015, 9:36:14 AM2/17/15
to omn...@googlegroups.com, aari...@hotmail.com
Hello,

I got the same errors:
===

linklayer/ieee80211mesh/hwmp/hwmp.cc:1670:24: error: variable length array of non-POD element type 'MACAddress'

        MACAddress addr[m_unicastPreqThreshold];

                       ^

linklayer/ieee80211mesh/hwmp/hwmp.cc:1717:24: error: variable length array of non-POD element type 'MACAddress'

        MACAddress addr[m_unicastDataThreshold];

===
I am using following config:
OS: Mac OS X 10.10.1
OMNeT++: 4.6
InetManet: 2.0

When I used the work-around to set m_unicastDataThreshold = 1, it gave following errors:
===

networklayer/ipv4/RoutingTableRecorder.cc:141:36: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]

    fprintf(routingLogFile, "%s  %"LL"d  %s  %d  %s %s\n",

                                   ^

                                    

networklayer/ipv4/RoutingTableRecorder.cc:166:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]

    fprintf(routingLogFile, "%s %"LL"d  %s  %d  %s  %s  %s  %s\n",

=== 

InetManet-2.0 compiles fine on Linux/Ubuntu. So, it seems to me that it is a mac-os-specific compiler issue. 

~Parag 

Alfonso Ariza Quintana

unread,
Feb 17, 2015, 10:56:40 AM2/17/15
to omn...@googlegroups.com

%"LL"d 

 

You can try %lld

Parag Sewalkar

unread,
Feb 18, 2015, 6:39:11 AM2/18/15
to omn...@googlegroups.com, aari...@hotmail.com
Hello,

It is compiling successfully after this modification. Thank you for your help.

~Parag
Reply all
Reply to author
Forward
0 new messages