Connecting OMNET++ 6.0.3 + INET 4.5 with Matlab using Winsock

45 views
Skip to first unread message

António Grilo

unread,
Apr 23, 2024, 10:25:58 AMApr 23
to OMNeT++ Users
Hello, 

My objective is to call a Matlab function from INET4.5.
In order to escape the nightmare of linking Matlab C++ libraries, I am trying to connect INET 4.5 and Matlab using the Winsock API. In my INET 4.5 application code I include Winsock:

#include <winsock2.h>

However, I get the following compiler error:

In file included from inet/common/NetworkNamespaceContext.cc:10:

In file included from C:/omnetpp-6.0.3/tools/win32.x86_64/mingw64/include/sys/fcntl.h:12:

In file included from C:/omnetpp-6.0.3/tools/win32.x86_64/mingw64/include/sys/fcntl.h:12:

In file included from C:/omnetpp-6.0.3/tools/win32.x86_64/mingw64/include/sys/fcntl.h:12:

In file included from C:/omnetpp-6.0.3/tools/win32.x86_64/mingw64/include/sys/fcntl.h:12:

...

C:/omnetpp-6.0.3/tools/win32.x86_64/mingw64/include/sys/fcntl.h:12:10: error: #include nested too deeply

#include <fcntl.h>


It seems that there is some nested include of fcntl.h.

I have also tried winsock.h with the same result.

Any suggestions on how to solve this? Thank you in advance.


Best regards,

António Grilo




António Grilo

unread,
Apr 26, 2024, 10:20:23 AMApr 26
to OMNeT++ Users
Well... It was just a question of not including anything, since winsock is already included by default... =P 
Reply all
Reply to author
Forward
0 new messages