Simulte Compile Error

358 views
Skip to first unread message

Khurram Hussain

unread,
Jul 14, 2017, 9:32:07 AM7/14/17
to OMNeT++ Users
Dear Sir,

While compiling Simulte, I am getting below error. Please suggest.

Creating shared library: ../out/gcc-debug/src/liblte.dll
../out/gcc-debug/src/apps/vod/VoDUDPServer.o: In function `VoDUDPServer::initialize(int)':
D:\Khurram\LTE_Automation\omnetpp-5.1.1\my_workspace\simulte-1.0.0\src/apps/vod/VoDUDPServer.cc:97: undefined reference to `__imp_ntohl'
D:\Khurram\LTE_Automation\omnetpp-5.1.1\my_workspace\simulte-1.0.0\src/apps/vod/VoDUDPServer.cc:98: undefined reference to `__imp_ntohl'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:258: ../out/gcc-debug/src/liblte.dll] Error 1
make[1]: Leaving directory '/d/Khurram/LTE_Automation/omnetpp-5.1.1/my_workspace/simulte-1.0.0/src'
make: *** [Makefile:2: all] Error 2


Regards,
Khurram Hussain

imanou...@gmail.com

unread,
Sep 21, 2017, 10:35:26 AM9/21/17
to OMNeT++ Users
Hello,
could u please explain to me how did u fix this error!? because i have it too, and i don't know how to fix it!

Thank u

Alfonso Ariza Quintana

unread,
Sep 21, 2017, 10:42:56 AM9/21/17
to omn...@googlegroups.com

ntohl function is defined in the winsock library in Windows, you can include it with the option -lws2_32

in the linker

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

imanou...@gmail.com

unread,
Sep 21, 2017, 11:05:42 AM9/21/17
to OMNeT++ Users
Could u please give me more details how to do it, i'm new ....

Alfonso Ariza Quintana

unread,
Sep 21, 2017, 11:30:41 AM9/21/17
to omn...@googlegroups.com

 

In the manual “9.2.5 Using External C/C++ Libraries

 

In windows you need to include the winsock (ws2_32) library if you want to use ntohl

imanou...@gmail.com

unread,
Sep 22, 2017, 9:07:03 AM9/22/17
to omn...@googlegroups.com
it works , Thank you! 
But there is a new errors that appears while simulating the LTE examples 
<!> Warning: opp_run: Cannot check library ../../src/lte: Le module spécifié est introuvable

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


<!> Error: Cannot load library '../../src//liblte.dll': Le module spécifié est introuvable
 Simulation terminated with exit code: 1 
........... 

Could u help me please! where can i find this library!?

Regards,
Reply all
Reply to author
Forward
0 new messages