INET is driving me crazy!!!

566 views
Skip to first unread message

Leena

unread,
Oct 3, 2009, 4:46:05 PM10/3/09
to omnetpp
Hi all
I am doing a simulation model of the Client - Proxy interaction.
I am using Windows XP..
I have installed Visual Studio 2008, OMNET++ 4.0, and downloaded INET.
I have compiled INET and built the project and everything went well(Im
guessing since there were no errors in the console window).
I have done a dummy model just to test the use of INET, and it isnt
working :(
the problem is it is terminating the simulation before it appears to
me on the screen! and giving me this weird exit code:
Simulation terminated with exit code: -1073741515

Any idea what is going on?

Rudolf Hornig

unread,
Oct 4, 2009, 6:16:26 AM10/4/09
to omn...@googlegroups.com
You do not need visual studio (in fact it is not supported in the academic edition), the windows version of omnetpp comes bundled with the gcc compiler (mingw). I guess you are using that as a compiler.

Are you sure you have used the mingw compiler?

Other than that, it is impossible to say anything about it, without logs, or error any message.

Leena

unread,
Oct 4, 2009, 6:38:09 AM10/4/09
to omnetpp
I have downloaded Omnet 4.0 for windows and I guess it has
everything.. When I want to start omnet I type omnetpp in the mingwenv
window and then I start working with the interface and not the command
line when compiling and running my programs. What I did now is that I
included inet as a project in the "src" folder of my project, and
after compiling, this is what I get:


**** Build of configuration gcc-debug for project modemtobroadband
****

make MODE=debug CONFIGNAME=gcc-debug all
cd src && make
make[1]: Entering directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/modemtobroadband/src'
g++ -c -gstabs+ -Wall -fno-stack-protector -I/usr/include -
DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -I. -
Iinet -Iinet/_scripts -Iinet/_scripts/xmlschema -Iinet/_scripts/
xsd2html -Iinet/doc -Iinet/doc/src -Iinet/doc/src/tcp -Iinet/doc/
tutorial -Iinet/doc/walkthrough -Iinet/doc/walkthrough/images -Iinet/
doc/walkthrough/thumbs -Iinet/etc -Iinet/etc/plugins -Iinet/examples -
Iinet/examples/adhoc -Iinet/examples/adhoc/ieee80211 -Iinet/examples/
adhoc/mf80211 -Iinet/examples/adhoc/mobility -Iinet/examples/emulation
-Iinet/examples/emulation/extclient -Iinet/examples/emulation/
traceroute -Iinet/examples/ethernet -Iinet/examples/ethernet/arptest -
Iinet/examples/ethernet/arptest2 -Iinet/examples/ethernet/lans -Iinet/
examples/inet -Iinet/examples/inet/bulktransfer -Iinet/examples/inet/
flatnet -Iinet/examples/inet/kidsnw1 -Iinet/examples/inet/multicast -
Iinet/examples/inet/nclients -Iinet/examples/inet/redtest -Iinet/
examples/inet/routerperf -Iinet/examples/ipv6 -Iinet/examples/ipv6/
demonetworketh -Iinet/examples/ipv6/nclients -Iinet/examples/mpls -
Iinet/examples/mpls/ldp -Iinet/examples/mpls/net37 -Iinet/examples/
mpls/testte_failure -Iinet/examples/mpls/testte_failure2 -Iinet/
examples/mpls/testte_reroute -Iinet/examples/mpls/testte_routing -
Iinet/examples/mpls/testte_tunnel -Iinet/examples/ospfv2 -Iinet/
examples/ospfv2/areas -Iinet/examples/ospfv2/backbone -Iinet/examples/
ospfv2/fulltest -Iinet/examples/ospfv2/simpletest -Iinet/examples/rtp -
Iinet/examples/rtp/data -Iinet/examples/rtp/multicast1 -Iinet/examples/
rtp/multicast2 -Iinet/examples/rtp/unicast -Iinet/examples/sctp -Iinet/
examples/sctp/multihomed -Iinet/examples/sctp/nclients -Iinet/examples/
wireless -Iinet/examples/wireless/handover -Iinet/examples/wireless/
hosttohost -Iinet/examples/wireless/lan80211 -Iinet/examples/wireless/
throughput -Iinet/migrate -Iinet/obsolete -Iinet/obsolete/apps -Iinet/
obsolete/examples -Iinet/obsolete/examples/mpls -Iinet/obsolete/
examples/mpls/ldp-mpls1 -Iinet/obsolete/examples/mpls/test -Iinet/
obsolete/examples/mpls/testte1 -Iinet/obsolete/examples/mpls/testte2 -
Iinet/obsolete/examples/mpls/testte3 -Iinet/obsolete/examples/mpls/
testte4 -Iinet/obsolete/examples/mpls/testte5 -Iinet/obsolete/examples/
mpls/testte6 -Iinet/obsolete/examples/tcptester -Iinet/obsolete/
examples/udpsockets -Iinet/obsolete/ipv4d -Iinet/obsolete/ldp -Iinet/
obsolete/minitcp -Iinet/obsolete/nodes -Iinet/obsolete/ospftest -Iinet/
obsolete/ospftest/ospfareatest_config -Iinet/obsolete/ospftest/
ospfbackbonetest_config -Iinet/obsolete/ospftest/ospfsimpletest_config
-Iinet/obsolete/ospftest/ospftestnetwork_config -Iinet/obsolete/rsvp -
Iinet/obsolete/rsvp_te -Iinet/obsolete/scenario -Iinet/obsolete/
scripts -Iinet/obsolete/scripts/scripts -Iinet/obsolete/socket -Iinet/
obsolete/tcpmodule -Iinet/out -Iinet/out/gcc-debug -Iinet/out/gcc-
debug/src -Iinet/out/gcc-debug/src/applications -Iinet/out/gcc-debug/
src/applications/ethernet -Iinet/out/gcc-debug/src/applications/
generic -Iinet/out/gcc-debug/src/applications/pingapp -Iinet/out/gcc-
debug/src/applications/rtpapp -Iinet/out/gcc-debug/src/applications/
sctpapp -Iinet/out/gcc-debug/src/applications/tcpapp -Iinet/out/gcc-
debug/src/applications/udpapp -Iinet/out/gcc-debug/src/base -Iinet/out/
gcc-debug/src/linklayer -Iinet/out/gcc-debug/src/linklayer/contract -
Iinet/out/gcc-debug/src/linklayer/ethernet -Iinet/out/gcc-debug/src/
linklayer/etherswitch -Iinet/out/gcc-debug/src/linklayer/ext -Iinet/
out/gcc-debug/src/linklayer/ieee80211 -Iinet/out/gcc-debug/src/
linklayer/ieee80211/mac -Iinet/out/gcc-debug/src/linklayer/ieee80211/
mgmt -Iinet/out/gcc-debug/src/linklayer/mf80211 -Iinet/out/gcc-debug/
src/linklayer/mf80211/macLayer -Iinet/out/gcc-debug/src/linklayer/
mf80211/phyLayer -Iinet/out/gcc-debug/src/linklayer/mf80211/phyLayer/
decider -Iinet/out/gcc-debug/src/linklayer/mf80211/phyLayer/snrEval -
Iinet/out/gcc-debug/src/linklayer/mfcore -Iinet/out/gcc-debug/src/
linklayer/ppp -Iinet/out/gcc-debug/src/linklayer/radio -Iinet/out/gcc-
debug/src/mobility -Iinet/out/gcc-debug/src/networklayer -Iinet/out/
gcc-debug/src/networklayer/arp -Iinet/out/gcc-debug/src/networklayer/
autorouting -Iinet/out/gcc-debug/src/networklayer/common -Iinet/out/
gcc-debug/src/networklayer/contract -Iinet/out/gcc-debug/src/
networklayer/extras -Iinet/out/gcc-debug/src/networklayer/icmpv6 -
Iinet/out/gcc-debug/src/networklayer/ipv4 -Iinet/out/gcc-debug/src/
networklayer/ipv6 -Iinet/out/gcc-debug/src/networklayer/ldp -Iinet/out/
gcc-debug/src/networklayer/mpls -Iinet/out/gcc-debug/src/networklayer/
ospfv2 -Iinet/out/gcc-debug/src/networklayer/ospfv2/interface -Iinet/
out/gcc-debug/src/networklayer/ospfv2/messagehandler -Iinet/out/gcc-
debug/src/networklayer/ospfv2/neighbor -Iinet/out/gcc-debug/src/
networklayer/ospfv2/router -Iinet/out/gcc-debug/src/networklayer/queue
-Iinet/out/gcc-debug/src/networklayer/rsvp_te -Iinet/out/gcc-debug/src/
networklayer/ted -Iinet/out/gcc-debug/src/transport -Iinet/out/gcc-
debug/src/transport/contract -Iinet/out/gcc-debug/src/transport/rtp -
Iinet/out/gcc-debug/src/transport/rtp/profiles -Iinet/out/gcc-debug/
src/transport/rtp/profiles/avprofile -Iinet/out/gcc-debug/src/
transport/sctp -Iinet/out/gcc-debug/src/transport/tcp -Iinet/out/gcc-
debug/src/transport/tcp/flavours -Iinet/out/gcc-debug/src/transport/
tcp/queues -Iinet/out/gcc-debug/src/transport/udp -Iinet/out/gcc-debug/
src/util -Iinet/out/gcc-debug/src/util/headerserializers -Iinet/out/
gcc-debug/src/world -Iinet/src -Iinet/src/applications -Iinet/src/
applications/ethernet -Iinet/src/applications/generic -Iinet/src/
applications/pingapp -Iinet/src/applications/rtpapp -Iinet/src/
applications/sctpapp -Iinet/src/applications/tcpapp -Iinet/src/
applications/udpapp -Iinet/src/base -Iinet/src/linklayer -Iinet/src/
linklayer/contract -Iinet/src/linklayer/ethernet -Iinet/src/linklayer/
etherswitch -Iinet/src/linklayer/ext -Iinet/src/linklayer/ieee80211 -
Iinet/src/linklayer/ieee80211/mac -Iinet/src/linklayer/ieee80211/mgmt -
Iinet/src/linklayer/mf80211 -Iinet/src/linklayer/mf80211/macLayer -
Iinet/src/linklayer/mf80211/phyLayer -Iinet/src/linklayer/mf80211/
phyLayer/decider -Iinet/src/linklayer/mf80211/phyLayer/snrEval -Iinet/
src/linklayer/mfcore -Iinet/src/linklayer/ppp -Iinet/src/linklayer/
radio -Iinet/src/mobility -Iinet/src/networklayer -Iinet/src/
networklayer/arp -Iinet/src/networklayer/autorouting -Iinet/src/
networklayer/common -Iinet/src/networklayer/contract -Iinet/src/
networklayer/extras -Iinet/src/networklayer/icmpv6 -Iinet/src/
networklayer/ipv4 -Iinet/src/networklayer/ipv6 -Iinet/src/networklayer/
ldp -Iinet/src/networklayer/mpls -Iinet/src/networklayer/ospfv2 -Iinet/
src/networklayer/ospfv2/interface -Iinet/src/networklayer/ospfv2/
messagehandler -Iinet/src/networklayer/ospfv2/neighbor -Iinet/src/
networklayer/ospfv2/router -Iinet/src/networklayer/queue -Iinet/src/
networklayer/rsvp_te -Iinet/src/networklayer/ted -Iinet/src/nodes -
Iinet/src/nodes/adhoc -Iinet/src/nodes/ethernet -Iinet/src/nodes/inet -
Iinet/src/nodes/ipv6 -Iinet/src/nodes/mpls -Iinet/src/nodes/wireless -
Iinet/src/transport -Iinet/src/transport/contract -Iinet/src/transport/
rtp -Iinet/src/transport/rtp/profiles -Iinet/src/transport/rtp/
profiles/avprofile -Iinet/src/transport/sctp -Iinet/src/transport/tcp -
Iinet/src/transport/tcp/flavours -Iinet/src/transport/tcp/queues -
Iinet/src/transport/udp -Iinet/src/util -Iinet/src/util/
headerserializers -Iinet/src/util/headerserializers/headers -Iinet/src/
world -Iinet/tests -Iinet/tests/dlltest -Iinet/tests/ipv4 -Iinet/tests/
ipv6 -Iinet/tests/newtcp -Iinet/tests/newtcp/test -Id:/omnetpp-4.0-src-
windows/omnetpp-4.0/include -o ../out/gcc-debug/src/inet/obsolete/apps/
MyTCPClient.o inet/obsolete/apps/MyTCPClient.cc
inet/obsolete/apps/MyTCPClient.cc:10: error: ISO C++ forbids
declaration of
'NOTE_the_deprecated_Module_Class_Members_macro_has_been_removed_in_version_4_0'
with no type
inet/obsolete/apps/MyTCPClient.cc:25: error: 'TcpConnId' does not name
a type
inet/obsolete/apps/MyTCPClient.cc:28: error: 'TcpFlag' does not name a
type
inet/obsolete/apps/MyTCPClient.cc:29: error: 'TcpFlag' does not name a
type
inet/obsolete/apps/MyTCPClient.cc:58: error: expected constructor,
destructor, or type conversion before ';' token
inet/obsolete/apps/MyTCPClient.cc: In member function 'virtual void
MyTCPClient::initialize()':
inet/obsolete/apps/MyTCPClient.cc:63: error: 'tcp_conn_id' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:64: error: 'tcp_flag_psh' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:64: error: 'TCP_F_SET' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:65: error: 'tcp_flag_urg' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:65: error: 'TCP_F_NSET' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc: In member function 'virtual void
MyTCPClient::activity()':
inet/obsolete/apps/MyTCPClient.cc:81: error: 'tcp_conn_id' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:83: error: 'id' was not declared in
this scope
inet/obsolete/apps/MyTCPClient.cc:92: error: 'class cMessage' has no
member named 'kind'
inet/obsolete/apps/MyTCPClient.cc:92: error: 'TCP_I_CLOSED' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:92: error: 'class cMessage' has no
member named 'kind'
inet/obsolete/apps/MyTCPClient.cc:92: error: 'TCP_I_ESTAB' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:94: error: 'class cMessage' has no
member named 'kind'
inet/obsolete/apps/MyTCPClient.cc:103: error: 'class cMessage' has no
member named 'kind'
inet/obsolete/apps/MyTCPClient.cc: In member function 'void
MyTCPClient::issueTCP_RECEIVE()':
inet/obsolete/apps/MyTCPClient.cc:143: error: 'TCP_C_RECEIVE' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:148: error: 'tcp_conn_id' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:149: error: 'class cMessage' has no
member named 'setLength'
inet/obsolete/apps/MyTCPClient.cc: In member function 'void
MyTCPClient::sendKEEP_ALIVE()':
inet/obsolete/apps/MyTCPClient.cc:160: error: 'TCP_C_SEND' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:161: error: 'tcp_conn_id' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:166: error: 'tcp_flag_psh' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:167: error: 'tcp_flag_urg' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:169: error: 'class cMessage' has no
member named 'setLength'
inet/obsolete/apps/MyTCPClient.cc: In member function 'void
MyTCPClient::processData(cMessage*)':
inet/obsolete/apps/MyTCPClient.cc:214: error: 'class cMessage' has no
member named 'kind'
inet/obsolete/apps/MyTCPClient.cc:214: error: 'TCP_I_SEG_FWD' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc: In member function 'void
MyTCPClient::sendOpenActive()':
inet/obsolete/apps/MyTCPClient.cc:229: error: 'TCP_C_OPEN_ACTIVE' was
not declared in this scope
inet/obsolete/apps/MyTCPClient.cc:235: error: 'class cMessage' has no
member named 'setLength'
inet/obsolete/apps/MyTCPClient.cc: In member function 'void
MyTCPClient::sendBroken()':
inet/obsolete/apps/MyTCPClient.cc:245: error: 'TCP_C_ABORT' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:252: error: 'tcp_conn_id' was not
declared in this scope
inet/obsolete/apps/MyTCPClient.cc:255: error: 'class cMessage' has no
member named 'setLength'
make[1]: *** [../out/gcc-debug/src/inet/obsolete/apps/MyTCPClient.o]
Error 1
make[1]: Leaving directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/modemtobroadband/src'
make: *** [src_dir] Error 2


the question is, should I include the inet project in my project, or
is it enough to compile it and build it in my workspace for me to use
in my project ? cuz even in that case it is giving me errors that some
of the "#include" are not found :( please help ive been struggling
with this for so long and I only got 1 month left to turn in my
project!

Leena

unread,
Oct 4, 2009, 7:13:06 AM10/4/09
to omnetpp
here is another Scenario of I what I tried:

I have both projects("moderntobroadband" and "inet") in "samples"
folder which has the examples you can test with omnet.
I have only both projects in my workspace, I compiled and built inet
and this is the console log:


**** Build of configuration gcc-debug for project inet ****

make MODE=debug CONFIGNAME=gcc-debug all
cd src && make
make[1]: Entering directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/inet/src'
g++ -shared -o ../out/gcc-debug/src/libinet.dll ../out/gcc-debug/src/
applications/ethernet/EtherAppCli.o ../out/gcc-debug/src/applications/
ethernet/EtherAppSrv.o ../out/gcc-debug/src/applications/generic/
IPTrafGen.o ../out/gcc-debug/src/applications/pingapp/PingApp.o ../out/
gcc-debug/src/applications/rtpapp/RTPApplication.o ../out/gcc-debug/
src/applications/sctpapp/SCTPClient.o ../out/gcc-debug/src/
applications/sctpapp/SCTPPeer.o ../out/gcc-debug/src/applications/
sctpapp/SCTPServer.o ../out/gcc-debug/src/applications/tcpapp/
TCPBasicClientApp.o ../out/gcc-debug/src/applications/tcpapp/
TCPEchoApp.o ../out/gcc-debug/src/applications/tcpapp/
TCPGenericCliAppBase.o ../out/gcc-debug/src/applications/tcpapp/
TCPGenericSrvApp.o ../out/gcc-debug/src/applications/tcpapp/
TCPGenericSrvThread.o ../out/gcc-debug/src/applications/tcpapp/
TCPSessionApp.o ../out/gcc-debug/src/applications/tcpapp/
TCPSinkApp.o ../out/gcc-debug/src/applications/tcpapp/TCPSpoof.o ../
out/gcc-debug/src/applications/tcpapp/TCPSrvHostApp.o ../out/gcc-debug/
src/applications/tcpapp/TelnetApp.o ../out/gcc-debug/src/applications/
udpapp/UDPAppBase.o ../out/gcc-debug/src/applications/udpapp/
UDPBasicApp.o ../out/gcc-debug/src/applications/udpapp/UDPEchoApp.o ../
out/gcc-debug/src/applications/udpapp/UDPSink.o ../out/gcc-debug/src/
applications/udpapp/UDPVideoStreamCli.o ../out/gcc-debug/src/
applications/udpapp/UDPVideoStreamSvr.o ../out/gcc-debug/src/base/
AbstractQueue.o ../out/gcc-debug/src/base/BasicModule.o ../out/gcc-
debug/src/base/Blackboard.o ../out/gcc-debug/src/base/
ByteArrayMessage.o ../out/gcc-debug/src/base/Join.o ../out/gcc-debug/
src/base/ModuleAccess.o ../out/gcc-debug/src/base/
NotificationBoard.o ../out/gcc-debug/src/base/NotifierConsts.o ../out/
gcc-debug/src/base/PassiveQueueBase.o ../out/gcc-debug/src/base/
ProtocolMap.o ../out/gcc-debug/src/base/QueueBase.o ../out/gcc-debug/
src/base/QueueWithQoS.o ../out/gcc-debug/src/base/
ReassemblyBuffer.o ../out/gcc-debug/src/base/Sink.o ../out/gcc-debug/
src/linklayer/contract/MACAddress.o ../out/gcc-debug/src/linklayer/
ethernet/EtherBus.o ../out/gcc-debug/src/linklayer/ethernet/
EtherEncap.o ../out/gcc-debug/src/linklayer/ethernet/EtherHub.o ../out/
gcc-debug/src/linklayer/ethernet/EtherLLC.o ../out/gcc-debug/src/
linklayer/ethernet/EtherMAC.o ../out/gcc-debug/src/linklayer/ethernet/
EtherMAC2.o ../out/gcc-debug/src/linklayer/ethernet/EtherMACBase.o ../
out/gcc-debug/src/linklayer/etherswitch/MACRelayUnitBase.o ../out/gcc-
debug/src/linklayer/etherswitch/MACRelayUnitNP.o ../out/gcc-debug/src/
linklayer/etherswitch/MACRelayUnitPP.o ../out/gcc-debug/src/linklayer/
ext/cSocketRTScheduler.o ../out/gcc-debug/src/linklayer/ext/
ExtInterface.o ../out/gcc-debug/src/linklayer/ieee80211/mac/
Ieee80211Mac.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211AgentSTA.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtAdhoc.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtAP.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtAPBase.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtAPSimplified.o ../out/gcc-debug/src/linklayer/ieee80211/
mgmt/Ieee80211MgmtBase.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtSTA.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtSTASimplified.o ../out/gcc-debug/src/linklayer/mf80211/
macLayer/CSMAMacLayer.o ../out/gcc-debug/src/linklayer/mf80211/
macLayer/Mac80211.o ../out/gcc-debug/src/linklayer/mfcore/
BasicDecider.o ../out/gcc-debug/src/linklayer/mfcore/BasicSnrEval.o ../
out/gcc-debug/src/linklayer/mfcore/WirelessMacBase.o ../out/gcc-debug/
src/linklayer/ppp/PPP.o ../out/gcc-debug/src/linklayer/ppp/
ThruputMeter.o ../out/gcc-debug/src/linklayer/radio/AbstractRadio.o ../
out/gcc-debug/src/linklayer/radio/GenericRadio.o ../out/gcc-debug/src/
linklayer/radio/GenericRadioModel.o ../out/gcc-debug/src/linklayer/
radio/Ieee80211Radio.o ../out/gcc-debug/src/linklayer/radio/
Ieee80211RadioModel.o ../out/gcc-debug/src/linklayer/radio/
Modulation.o ../out/gcc-debug/src/linklayer/radio/
PathLossReceptionModel.o ../out/gcc-debug/src/mobility/
ANSimMobility.o ../out/gcc-debug/src/mobility/BasicMobility.o ../out/
gcc-debug/src/mobility/BonnMotionFileCache.o ../out/gcc-debug/src/
mobility/BonnMotionMobility.o ../out/gcc-debug/src/mobility/
CircleMobility.o ../out/gcc-debug/src/mobility/ConstSpeedMobility.o ../
out/gcc-debug/src/mobility/LinearMobility.o ../out/gcc-debug/src/
mobility/LineSegmentsMobilityBase.o ../out/gcc-debug/src/mobility/
MassMobility.o ../out/gcc-debug/src/mobility/NullMobility.o ../out/gcc-
debug/src/mobility/RandomWPMobility.o ../out/gcc-debug/src/mobility/
RectangleMobility.o ../out/gcc-debug/src/mobility/TurtleMobility.o ../
out/gcc-debug/src/networklayer/arp/ARP.o ../out/gcc-debug/src/
networklayer/autorouting/FlatNetworkConfigurator.o ../out/gcc-debug/
src/networklayer/autorouting/FlatNetworkConfigurator6.o ../out/gcc-
debug/src/networklayer/autorouting/NetworkConfigurator.o ../out/gcc-
debug/src/networklayer/common/InterfaceEntry.o ../out/gcc-debug/src/
networklayer/common/InterfaceTable.o ../out/gcc-debug/src/networklayer/
contract/IPAddress.o ../out/gcc-debug/src/networklayer/contract/
IPAddressResolver.o ../out/gcc-debug/src/networklayer/contract/
IPControlInfo.o ../out/gcc-debug/src/networklayer/contract/
IPv6Address.o ../out/gcc-debug/src/networklayer/contract/
IPv6ControlInfo.o ../out/gcc-debug/src/networklayer/contract/
IPvXAddress.o ../out/gcc-debug/src/networklayer/extras/Dummy.o ../out/
gcc-debug/src/networklayer/extras/FailureManager.o ../out/gcc-debug/
src/networklayer/extras/NetworkInfo.o ../out/gcc-debug/src/
networklayer/icmpv6/ICMPv6.o ../out/gcc-debug/src/networklayer/icmpv6/
IPv6NeighbourCache.o ../out/gcc-debug/src/networklayer/icmpv6/
IPv6NeighbourDiscovery.o ../out/gcc-debug/src/networklayer/ipv4/
ErrorHandling.o ../out/gcc-debug/src/networklayer/ipv4/ICMP.o ../out/
gcc-debug/src/networklayer/ipv4/IP.o ../out/gcc-debug/src/networklayer/
ipv4/IPFragBuf.o ../out/gcc-debug/src/networklayer/ipv4/IPRoute.o ../
out/gcc-debug/src/networklayer/ipv4/IPv4InterfaceData.o ../out/gcc-
debug/src/networklayer/ipv4/RoutingTable.o ../out/gcc-debug/src/
networklayer/ipv4/RoutingTableParser.o ../out/gcc-debug/src/
networklayer/ipv6/IPv6.o ../out/gcc-debug/src/networklayer/ipv6/
IPv6Datagram.o ../out/gcc-debug/src/networklayer/ipv6/
IPv6ErrorHandling.o ../out/gcc-debug/src/networklayer/ipv6/
IPv6FragBuf.o ../out/gcc-debug/src/networklayer/ipv6/
IPv6InterfaceData.o ../out/gcc-debug/src/networklayer/ipv6/
RoutingTable6.o ../out/gcc-debug/src/networklayer/ldp/LDP.o ../out/gcc-
debug/src/networklayer/mpls/LIBTable.o ../out/gcc-debug/src/
networklayer/mpls/MPLS.o ../out/gcc-debug/src/networklayer/mpls/
MPLSPacket.o ../out/gcc-debug/src/networklayer/ospfv2/OSPFRouting.o ../
out/gcc-debug/src/networklayer/ospfv2/interface/OSPFInterface.o ../out/
gcc-debug/src/networklayer/ospfv2/interface/OSPFInterfaceState.o ../
out/gcc-debug/src/networklayer/ospfv2/interface/
OSPFInterfaceStateBackup.o ../out/gcc-debug/src/networklayer/ospfv2/
interface/OSPFInterfaceStateDesignatedRouter.o ../out/gcc-debug/src/
networklayer/ospfv2/interface/OSPFInterfaceStateDown.o ../out/gcc-
debug/src/networklayer/ospfv2/interface/
OSPFInterfaceStateLoopback.o ../out/gcc-debug/src/networklayer/ospfv2/
interface/OSPFInterfaceStateNotDesignatedRouter.o ../out/gcc-debug/src/
networklayer/ospfv2/interface/OSPFInterfaceStatePointToPoint.o ../out/
gcc-debug/src/networklayer/ospfv2/interface/
OSPFInterfaceStateWaiting.o ../out/gcc-debug/src/networklayer/ospfv2/
messagehandler/DatabaseDescriptionHandler.o ../out/gcc-debug/src/
networklayer/ospfv2/messagehandler/HelloHandler.o ../out/gcc-debug/src/
networklayer/ospfv2/messagehandler/
LinkStateAcknowledgementHandler.o ../out/gcc-debug/src/networklayer/
ospfv2/messagehandler/LinkStateRequestHandler.o ../out/gcc-debug/src/
networklayer/ospfv2/messagehandler/LinkStateUpdateHandler.o ../out/gcc-
debug/src/networklayer/ospfv2/messagehandler/MessageHandler.o ../out/
gcc-debug/src/networklayer/ospfv2/neighbor/OSPFNeighbor.o ../out/gcc-
debug/src/networklayer/ospfv2/neighbor/OSPFNeighborState.o ../out/gcc-
debug/src/networklayer/ospfv2/neighbor/OSPFNeighborStateAttempt.o ../
out/gcc-debug/src/networklayer/ospfv2/neighbor/
OSPFNeighborStateDown.o ../out/gcc-debug/src/networklayer/ospfv2/
neighbor/OSPFNeighborStateExchange.o ../out/gcc-debug/src/networklayer/
ospfv2/neighbor/OSPFNeighborStateExchangeStart.o ../out/gcc-debug/src/
networklayer/ospfv2/neighbor/OSPFNeighborStateFull.o ../out/gcc-debug/
src/networklayer/ospfv2/neighbor/OSPFNeighborStateInit.o ../out/gcc-
debug/src/networklayer/ospfv2/neighbor/OSPFNeighborStateLoading.o ../
out/gcc-debug/src/networklayer/ospfv2/neighbor/
OSPFNeighborStateTwoWay.o ../out/gcc-debug/src/networklayer/ospfv2/
router/ASExternalLSA.o ../out/gcc-debug/src/networklayer/ospfv2/router/
NetworkLSA.o ../out/gcc-debug/src/networklayer/ospfv2/router/
OSPFArea.o ../out/gcc-debug/src/networklayer/ospfv2/router/
OSPFRouter.o ../out/gcc-debug/src/networklayer/ospfv2/router/
RouterLSA.o ../out/gcc-debug/src/networklayer/ospfv2/router/
SummaryLSA.o ../out/gcc-debug/src/networklayer/queue/
BasicDSCPClassifier.o ../out/gcc-debug/src/networklayer/queue/
DropTailQoSQueue.o ../out/gcc-debug/src/networklayer/queue/
DropTailQueue.o ../out/gcc-debug/src/networklayer/queue/REDQueue.o ../
out/gcc-debug/src/networklayer/rsvp_te/RSVP.o ../out/gcc-debug/src/
networklayer/rsvp_te/SimpleClassifier.o ../out/gcc-debug/src/
networklayer/rsvp_te/Utils.o ../out/gcc-debug/src/networklayer/ted/
LinkStateRouting.o ../out/gcc-debug/src/networklayer/ted/TED.o ../out/
gcc-debug/src/transport/contract/SCTPSocket.o ../out/gcc-debug/src/
transport/contract/TCPSocket.o ../out/gcc-debug/src/transport/contract/
TCPSocketMap.o ../out/gcc-debug/src/transport/contract/UDPSocket.o ../
out/gcc-debug/src/transport/rtp/reports.o ../out/gcc-debug/src/
transport/rtp/RTCP.o ../out/gcc-debug/src/transport/rtp/
RTCPPacket.o ../out/gcc-debug/src/transport/rtp/RTP.o ../out/gcc-debug/
src/transport/rtp/RTPInnerPacket.o ../out/gcc-debug/src/transport/rtp/
RTPInterfacePacket.o ../out/gcc-debug/src/transport/rtp/RTPPacket.o ../
out/gcc-debug/src/transport/rtp/RTPParticipantInfo.o ../out/gcc-debug/
src/transport/rtp/RTPPayloadReceiver.o ../out/gcc-debug/src/transport/
rtp/RTPPayloadSender.o ../out/gcc-debug/src/transport/rtp/
RTPProfile.o ../out/gcc-debug/src/transport/rtp/RTPReceiverInfo.o ../
out/gcc-debug/src/transport/rtp/RTPSenderInfo.o ../out/gcc-debug/src/
transport/rtp/sdes.o ../out/gcc-debug/src/transport/sctp/SCTP.o ../out/
gcc-debug/src/transport/sctp/SCTPAlg.o ../out/gcc-debug/src/transport/
sctp/SCTPAssociationBase.o ../out/gcc-debug/src/transport/sctp/
SCTPAssociationEventProc.o ../out/gcc-debug/src/transport/sctp/
SCTPAssociationRcvMessage.o ../out/gcc-debug/src/transport/sctp/
SCTPAssociationUtil.o ../out/gcc-debug/src/transport/sctp/
SCTPCCFunctions.o ../out/gcc-debug/src/transport/sctp/SCTPMessage.o ../
out/gcc-debug/src/transport/sctp/SCTPQueue.o ../out/gcc-debug/src/
transport/sctp/SCTPReceiveStream.o ../out/gcc-debug/src/transport/sctp/
SCTPSendStream.o ../out/gcc-debug/src/transport/sctp/
SCTPSSFunctions.o ../out/gcc-debug/src/transport/tcp/TCP.o ../out/gcc-
debug/src/transport/tcp/TCPConnectionBase.o ../out/gcc-debug/src/
transport/tcp/TCPConnectionEventProc.o ../out/gcc-debug/src/transport/
tcp/TCPConnectionRcvSegment.o ../out/gcc-debug/src/transport/tcp/
TCPConnectionUtil.o ../out/gcc-debug/src/transport/tcp/TCPSegment.o ../
out/gcc-debug/src/transport/tcp/flavours/DumbTCP.o ../out/gcc-debug/
src/transport/tcp/flavours/TCPBaseAlg.o ../out/gcc-debug/src/transport/
tcp/flavours/TCPNoCongestionControl.o ../out/gcc-debug/src/transport/
tcp/flavours/TCPReno.o ../out/gcc-debug/src/transport/tcp/flavours/
TCPTahoe.o ../out/gcc-debug/src/transport/tcp/flavours/
TCPTahoeRenoFamily.o ../out/gcc-debug/src/transport/tcp/queues/
TCPMsgBasedRcvQueue.o ../out/gcc-debug/src/transport/tcp/queues/
TCPMsgBasedSendQueue.o ../out/gcc-debug/src/transport/tcp/queues/
TCPVirtualDataRcvQueue.o ../out/gcc-debug/src/transport/tcp/queues/
TCPVirtualDataSendQueue.o ../out/gcc-debug/src/transport/udp/UDP.o ../
out/gcc-debug/src/util/common.o ../out/gcc-debug/src/util/
NAMTraceWriter.o ../out/gcc-debug/src/util/opp_utils.o ../out/gcc-
debug/src/util/TCPDump.o ../out/gcc-debug/src/util/
ThruputMeteringChannel.o ../out/gcc-debug/src/util/XMLUtils.o ../out/
gcc-debug/src/util/headerserializers/ICMPSerializer.o ../out/gcc-debug/
src/util/headerserializers/IPSerializer.o ../out/gcc-debug/src/util/
headerserializers/SCTPSerializer.o ../out/gcc-debug/src/util/
headerserializers/TCPSerializer.o ../out/gcc-debug/src/util/
headerserializers/UDPSerializer.o ../out/gcc-debug/src/world/
ChannelAccess.o ../out/gcc-debug/src/world/ChannelControl.o ../out/gcc-
debug/src/world/ChannelInstaller.o ../out/gcc-debug/src/world/
NAMTrace.o ../out/gcc-debug/src/world/ScenarioManager.o ../out/gcc-
debug/src/applications/ethernet/EtherApp_m.o ../out/gcc-debug/src/
applications/pingapp/PingPayload_m.o ../out/gcc-debug/src/applications/
tcpapp/GenericAppMsg_m.o ../out/gcc-debug/src/applications/udpapp/
UDPEchoAppMsg_m.o ../out/gcc-debug/src/base/ByteArrayMessage_m.o ../
out/gcc-debug/src/linklayer/contract/Ieee802Ctrl_m.o ../out/gcc-debug/
src/linklayer/contract/PhyControlInfo_m.o ../out/gcc-debug/src/
linklayer/ethernet/EtherFrame_m.o ../out/gcc-debug/src/linklayer/ext/
ExtFrame_m.o ../out/gcc-debug/src/linklayer/ieee80211/mac/
Ieee80211Frame_m.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211MgmtFrames_m.o ../out/gcc-debug/src/linklayer/ieee80211/mgmt/
Ieee80211Primitives_m.o ../out/gcc-debug/src/linklayer/mf80211/
macLayer/Mac80211Pkt_m.o ../out/gcc-debug/src/linklayer/mf80211/
macLayer/MacPkt_m.o ../out/gcc-debug/src/linklayer/mfcore/
AirFrame_m.o ../out/gcc-debug/src/linklayer/mfcore/
SnrControlInfo_m.o ../out/gcc-debug/src/linklayer/mfcore/
TransmComplete_m.o ../out/gcc-debug/src/linklayer/ppp/PPPFrame_m.o ../
out/gcc-debug/src/networklayer/arp/ARPPacket_m.o ../out/gcc-debug/src/
networklayer/contract/IPControlInfo_m.o ../out/gcc-debug/src/
networklayer/contract/IPProtocolId_m.o ../out/gcc-debug/src/
networklayer/contract/IPv6ControlInfo_m.o ../out/gcc-debug/src/
networklayer/icmpv6/ICMPv6Message_m.o ../out/gcc-debug/src/
networklayer/icmpv6/IPv6NDMessage_m.o ../out/gcc-debug/src/
networklayer/ipv4/ControlManetRouting_m.o ../out/gcc-debug/src/
networklayer/ipv4/ICMPMessage_m.o ../out/gcc-debug/src/networklayer/
ipv4/IPDatagram_m.o ../out/gcc-debug/src/networklayer/ipv6/
IPv6Datagram_m.o ../out/gcc-debug/src/networklayer/ipv6/
IPv6ExtensionHeaders_m.o ../out/gcc-debug/src/networklayer/ldp/
LDPPacket_m.o ../out/gcc-debug/src/networklayer/ospfv2/
OSPFPacket_m.o ../out/gcc-debug/src/networklayer/ospfv2/
OSPFTimer_m.o ../out/gcc-debug/src/networklayer/rsvp_te/IntServ_m.o ../
out/gcc-debug/src/networklayer/rsvp_te/RSVPHello_m.o ../out/gcc-debug/
src/networklayer/rsvp_te/RSVPPacket_m.o ../out/gcc-debug/src/
networklayer/rsvp_te/RSVPPathMsg_m.o ../out/gcc-debug/src/networklayer/
rsvp_te/RSVPResvMsg_m.o ../out/gcc-debug/src/networklayer/rsvp_te/
SignallingMsg_m.o ../out/gcc-debug/src/networklayer/ted/
LinkStatePacket_m.o ../out/gcc-debug/src/networklayer/ted/TED_m.o ../
out/gcc-debug/src/transport/contract/SCTPCommand_m.o ../out/gcc-debug/
src/transport/contract/TCPCommand_m.o ../out/gcc-debug/src/transport/
contract/UDPControlInfo_m.o ../out/gcc-debug/src/transport/rtp/
RTPSenderControlMessage_m.o ../out/gcc-debug/src/transport/rtp/
RTPSenderStatusMessage_m.o ../out/gcc-debug/src/transport/sctp/
SCTPMessage_m.o ../out/gcc-debug/src/transport/tcp/TCPSegment_m.o ../
out/gcc-debug/src/transport/udp/UDPPacket_m.o -L"d:/omnetpp-4.0-src-
windows/omnetpp-4.0/lib/gcc" -L"d:/omnetpp-4.0-src-windows/omnetpp-4.0/
lib" -loppenvird -loppsimd -lwsock32 -lstdc++ -enable-auto-import -
shared-libgcc -L/usr/bin -L/usr/lib -Wl,-rpath,d:/omnetpp-4.0-src-
windows/omnetpp-4.0/lib:.
ln -s -f ../out/gcc-debug/src/libinet.dll .
make[1]: Leaving directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/inet/src'

**********************************************************************************************

Then I compile and build my project and this is what I get in the
console window:


**** Build of configuration gcc-debug for project modemtobroadband
****

make MODE=debug CONFIGNAME=gcc-debug all
cd src && make
make[1]: Entering directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/modemtobroadband/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/modemtobroadband/src'

**************************************************************************************************
and here is the code Im trying to test, just a simple dummy model to
check if inet objects will work:

//
// This program is free software: you can redistribute it and/or
modify
// it under the terms of the GNU Lesser General Public License as
published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

//
// TODO auto-generated module
//
import inet.nodes.inet.Router;
import inet.nodes.inet.StandardHost;
import inet.networklayer.autorouting.NetworkConfigurator;
import ned.DatarateChannel;

network Network
{
parameters:
int numRouters;
int hostsPerRouter;

types:
channel dialUp extends DatarateChannel
{
delay = 400ms;
datarate = 56Kbps;
}
channel ethernetline extends DatarateChannel
{
delay = 0.1us;
datarate = 100Mbps;
}

submodules:
configurator: NetworkConfigurator;
router[numRouters]: Router;
node[numRouters * hostsPerRouter]: StandardHost{
@display("i=old/laptop3,p=80,80,ring");
}
server: StandardHost {
parameters:
@display("i=device/server_l");
}

connections:
for i=0..numRouters-1, for j=0..hostsPerRouter-1 {
node[i*hostsPerRouter+j].pppg++ <--> dialUp <--> router
[i].pppg++;
}
for i=0..numRouters-2 {
router[i].pppg++ <--> ethernetline <--> router[i+1].pppg+
+;
}
router[numRouters-1].pppg++ <--> ethernetline <--> server.pppg+
+;


}
*******************************************************************8
this is what I get(IN RED!) when I Run As : Omnet project

Simulation terminated with exit code: -1073741515
Command line: D:/omnetpp-4.0-src-windows/omnetpp-4.0/samples/
modemtobroadband/src/modemtobroadband.exe -r 0 -n D:/omnetpp-4.0-src-
windows/omnetpp-4.0/samples/modemtobroadband/src;D:/omnetpp-4.0-src-
windows/omnetpp-4.0/samples/modemtobroadband/simulations D:/
omnetpp-4.0-src-windows/omnetpp-4.0/samples/modemtobroadband/src/
omnetpp.ini

Working directory: D:/omnetpp-4.0-src-windows/omnetpp-4.0/samples/
modemtobroadband/src

OMNETPP_ROOT=D:/OMNETPP-4.0-SRC-WINDOWS/OMNETPP-4.0
PATH=;D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\BIN;D:\OMNETPP-4.0-SRC-
WINDOWS\OMNETPP-4.0\MSYS\BIN;D:\OMNETPP-4.0-SRC-WINDOWS
\OMNETPP-4.0\MINGW\BIN;C:/PROGRAM FILES/JAVA/JRE6/BIN/CLIENT;C:/
PROGRAM FILES/JAVA/JRE6/BIN;.;D:\OMNETPP-4.0-SRC-WINDOWS
\OMNETPP-4.0\MSYS\LOCAL\BIN;D:\OMNETPP-4.0-SRC-WINDOWS
\OMNETPP-4.0\MINGW\BIN;D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\MSYS
\BIN;D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\BIN;C:\PROGRAM FILES\PC
CONNECTIVITY SOLUTION\;C:\OMNET++\BIN;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:
\WINDOWS\SYSTEM32\WBEM;C:\PROGRAM FILES\QUICKTIME\QTSYSTEM\;C:\PROGRAM
FILES\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT
SQL SERVER\100\DTS\BINN\
OMNETPP_IMAGE_PATH=D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\IMAGES



Any idea what is happening? Im very fresh to omnet so please any help
or guidelines would be appreciated.

Rudolf Hornig

unread,
Oct 4, 2009, 8:22:15 AM10/4/09
to omn...@googlegroups.com
On Sun, Oct 4, 2009 at 12:38 PM, Leena <maha.e...@gmail.com> wrote:

I have downloaded Omnet 4.0 for windows and I guess it has
everything.. When I want to start omnet I type omnetpp in the mingwenv
window and then I start working with the interface and not the command
line when compiling and running my programs.
Yes, you should have everything with the download package. That visual studio stuff is not needed and irrelevant..

 
What I did now is that I
included inet as a project in the "src" folder of my project, and
after compiling, this is what I get:


No you should not include inet in your project. See below...
 
[log skipped...]

the question is, should I include the inet project in my project, or
is it enough to compile it and build it in my workspace for me to use
in my project ? cuz even in that case it is giving me errors that some
of the "#include" are not found :( please help ive been struggling
with this for so long and I only got 1 month left to turn in my
project!

The correct way to handle your situation is depends on how deep you want to dive into INET.

The simple way:

A) - If you want to modify existing protocols and want to change CODE (i.e behaviour) then the best way is to download INET (or get it directly from the repository using GIT) and start modifying the code right in the INET folder. This is the easisest way, however you will have a hard time to update your workonce a newver version of INET becomes available...

B) - If you want to create new modules (i.e. want to add new code), I still would suggest to add your new files in the INET src folder at the right place.

C) - If you just want to USE the current protocols and do not want to add/change C++ code (ie. you are just creating new NED/INI files, then I would suggest, to look for a similar project in the inet/exmaples folder, and create a new directory there and add the ned and ini files there..

This will give you a quick start...


Advanced way:
D)- If you want to add new C++ modules in a separate project: first build the original INET project (in your other mail I saw, that INET build was successul on your machine and the libinet.dll was successfully created in the inet/src folder). Second create a new OMNETproject with C++ support. Right click on the project folder and on the Project References page, select the INET project (this will tell to the environment that you want to use the inet code (including NED files and the DLL file). Nothing else has to be done. You can work in your own project, create new simple modules and add NED files and C++ code as you wish...

E) - If you just want to use NED files (no new C++ code), the use the above method, but you do not need to click the C++ code support checkbox when you created your own project (you still have to set inet as a Project Reference)

As far as I saw, you did D), but forgot to check the INET as a referred project... Altough you would be ok also with the E) if you do not want to create new code...

Rudolf
 


Rudolf Hornig

unread,
Oct 4, 2009, 8:32:17 AM10/4/09
to omn...@googlegroups.com


On Sun, Oct 4, 2009 at 1:13 PM, Leena <maha.e...@gmail.com> wrote:

See below...

here is another Scenario of I what I tried:

I have both projects("moderntobroadband" and "inet") in "samples"
folder which has the examples you can test with omnet.
I have only both projects in my workspace, I compiled and built inet
and this is the console log:

[... skipped a lot of log]
 
SCTPMessage_m.o ../out/gcc-debug/src/transport/tcp/TCPSegment_m.o ../
out/gcc-debug/src/transport/udp/UDPPacket_m.o   -L"d:/omnetpp-4.0-src-
windows/omnetpp-4.0/lib/gcc" -L"d:/omnetpp-4.0-src-windows/omnetpp-4.0/
lib" -loppenvird -loppsimd -lwsock32 -lstdc++  -enable-auto-import -
shared-libgcc -L/usr/bin -L/usr/lib -Wl,-rpath,d:/omnetpp-4.0-src-
windows/omnetpp-4.0/lib:.
ln -s -f ../out/gcc-debug/src/libinet.dll .
make[1]: Leaving directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/inet/src'

Congrats, you have successfully compiled INET. You should have a libinet.dll in your src folder.

**********************************************************************************************

Then I compile and build my project and this is what I get in the
console window:


**** Build of configuration gcc-debug for project modemtobroadband
****

make MODE=debug CONFIGNAME=gcc-debug all
cd src && make
make[1]: Entering directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/modemtobroadband/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/d/omnetpp-4.0-src-windows/omnetpp-4.0/
samples/modemtobroadband/src'

Well, you have created a new omnet project with C++ support, but you have not added any C++ code to your project (yout a NED file) see the:
 make[1]: Nothing to be done for `all'.

This means, that no executable file was created of course, so it is no wonder that you cannot start it :)
See my previous mail about recommended ways, how to set up your work.

IF you just want to USE inet frametwork i.e. create only NEd and INI files, then Y would suggest to:
- Create a project WITHOUT C++ support.
- Be sure to check the Project References page and check the INET framework...

Rudolf

Leena

unread,
Oct 4, 2009, 8:42:05 AM10/4/09
to omnetpp
Thankssss alot for all the info! it really helped me to get a better
insight on how to use Inet :)
I have done a new project for test purposes also, called "mtob"
I have done the steps in in E) but got the following error in the
console window :

OMNeT++ Discrete Event Simulation (C) 1992-2008 Andras Varga, OpenSim
Ltd.
Version: 4.0, build: 090310-10709, edition: Academic Public License --
NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

End.

<!> Error during startup: Cannot load library 'D:/omnetpp-4.0-src-
windows/omnetpp-4.0/samples/inet/src//libinet.dll': is not a valid
Win32 application.

Simulation terminated with exit code: 1
Command line: d:\omnetpp-4.0-src-windows\omnetpp-4.0\bin/opp_run.exe -
r 0 -c General -n D:/omnetpp-4.0-src-windows/omnetpp-4.0/samples/
mtob;D:/omnetpp-4.0-src-windows/omnetpp-4.0/samples/inet/src -l D:/
omnetpp-4.0-src-windows/omnetpp-4.0/samples/inet/src/inet D:/
omnetpp-4.0-src-windows/omnetpp-4.0/samples/mtob/omnetpp.ini

Working directory: D:/omnetpp-4.0-src-windows/omnetpp-4.0/samples/mtob

OMNETPP_ROOT=D:/OMNETPP-4.0-SRC-WINDOWS/OMNETPP-4.0
PATH=;D:/OMNETPP-4.0-SRC-WINDOWS/OMNETPP-4.0/SAMPLES/INET/SRC;D:
\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\BIN;D:\OMNETPP-4.0-SRC-WINDOWS
\OMNETPP-4.0\MSYS\BIN;D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\MINGW
\BIN;C:/PROGRAM FILES/JAVA/JRE6/BIN/CLIENT;C:/PROGRAM FILES/JAVA/JRE6/
BIN;.;D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\MSYS\LOCAL\BIN;D:
\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\MINGW\BIN;D:\OMNETPP-4.0-SRC-
WINDOWS\OMNETPP-4.0\MSYS\BIN;D:\OMNETPP-4.0-SRC-WINDOWS
\OMNETPP-4.0\BIN;C:\PROGRAM FILES\PC CONNECTIVITY SOLUTION\;C:\OMNET++
\BIN;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:
\PROGRAM FILES\QUICKTIME\QTSYSTEM\;C:\PROGRAM FILES\MICROSOFT SQL
SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT SQL SERVER\100\DTS
\BINN\
OMNETPP_IMAGE_PATH=D:\OMNETPP-4.0-SRC-WINDOWS\OMNETPP-4.0\IMAGES

I think I have seen this error before with some of the members, im
gonna google it and check it out. if you have any extra advices please
do write back. Thanks alot :).

Rudolf Hornig

unread,
Oct 4, 2009, 8:47:36 AM10/4/09
to omn...@googlegroups.com
On Sun, Oct 4, 2009 at 2:42 PM, Leena <maha.e...@gmail.com> wrote:

Thankssss alot for all the info! it really helped me to get a better
insight on how to use Inet :)
I have done a new project for test purposes also, called "mtob"
I have done the steps in in E) but got the following error in the
console window :

OMNeT++ Discrete Event Simulation  (C) 1992-2008 Andras Varga, OpenSim
Ltd.
Version: 4.0, build: 090310-10709, edition: Academic Public License --
NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

End.

<!> Error during startup: Cannot load library 'D:/omnetpp-4.0-src-
windows/omnetpp-4.0/samples/inet/src//libinet.dll':  is not a valid
Win32 application.


Now this is strange... Your project setup kooks ok, but the inet shared libaray seems to be corrupt...
Try to clean the INET project and rebuild it...

Rudolf

 

Leena

unread,
Oct 4, 2009, 3:03:27 PM10/4/09
to omnetpp
I did and I also set inet to be a static library instead of shared..
the omnet simulation window popped up and asked for the number of
clients and routers I want in my network just as expected, but then it
doesnt recognize the networkconfigurator object used from inet. should
I download a newer version of inet? please give me its link if u can.
Thanks alot for your help really appreciate it.

On Oct 4, 4:47 pm, Rudolf Hornig <rudolf.hor...@gmail.com> wrote:

Leena

unread,
Oct 4, 2009, 4:40:17 PM10/4/09
to omnetpp
Hi, I downloaded wincap and installed it then redownloaded INET and
built the project and everything is fine now :):) thanks alot !!!! Im
so happy now! Ive been working on this for so long :(
just one last question, if I want to alter the behavior of the client
(or StandardHost object) do you recommend that I alter the original
file or should I write another one and use it?

Rudolf Hornig

unread,
Oct 4, 2009, 4:58:44 PM10/4/09
to omn...@googlegroups.com
Well, if you want to change only small parts, I would suggest to alter the original code. If you want to implement some new protocol/behaviour, then of course I suggest to create a new simple module with the functionality, but you can still place it in the inetsrc folder.

I would say, a separate project would be warranted if you would write something which is USING inet, for example a model which simulates peer to peer network, which requires TCP/IP to function, but does not change the TCP/IP implementation itself...

I think you should go along the easier route and add/modify files in inet.

Rudolf

Leena

unread,
Oct 4, 2009, 6:53:43 PM10/4/09
to omnetpp
Im only going to add a new component in the Host side which is a log
file along with some changes in how the clients responds to a request.
it is very similar to a P2P network..
Thanks alot for the help, God bless you.
Reply all
Reply to author
Forward
0 new messages