Closed rhornig closed 7 years ago
A bit investigation shows that this happens because:
Solution for the problem.
Added the needed changes to the project file, Makefile and makefrag
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.
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.