inet-framework / inet

INET Framework for the OMNeT++ discrete event simulator
https://inet.omnetpp.org
Other
440 stars 486 forks source link

Models dependent on INET are crashing on Windows #257

Closed rhornig closed 7 years ago

rhornig commented 7 years ago

Models that are using INET as a linked shared library (DLL) on Windows reported various unexplained crashes. For example in SimuLTE it was surfacing as an error stating that configuration of the network has failed. This is Windows specific and does not occurred if INET was compiled as a static library.

rhornig commented 7 years ago

A bit investigation shows that this happens because:

rhornig commented 7 years ago

Solution for the problem.

rhornig commented 7 years ago

Added the needed changes to the project file, Makefile and makefrag

rhornig commented 5 years ago

Just for clarity. -Wl,--enable-auto-import has nothing to do with this. The problem is that too many symbols are exported. By default all symbols are exported unless we activate the INET_API macro (which was empty until now. It was active only for visual c compiler). I.e. on clang/gcc the macro was not defined so all symbols were exported. The solution was to activate the export macro and reduce the export table size.