Veins link failure on Windows with OMNeT++ 6.0.x final versions
Closed this issue · 1 comments
rhornig commented
I am submitting a...
- bug report
What is the current behavior?
Veins does not build on Windows with OMNeT++ 6.0 final. The winsock2 DLL is not linked.
What is the expected behavior?
Successful build and linking.
Possible cause
OMNeT++ 6.0 changed the possible values in the $PLATFORM makefile variable. $PLATFORM now contains only the operating system (win32) instead of the operating system/architecture (win32.x86_64). The test for windows in src/makefrag
must be changed accordingly.
So instead of
ifeq ($(PLATFORM),win32.x86_64)
I recommend
ifneq (,$(findstring win32,$(PLATFORM)))
this one works with both the old and the new values (i.e. both with OMNeT++ 5.x and 6.0) as it starts whether the string contains 'win32' instead of equality.