The compilation failed when trying to compile in WSL env.
Create a static library (try windows, then unix)
lib.exe /out:uSockets.a .o || ar rvs uSockets.a .o
Microsoft (R) Library Manager Version 14.40.33811.0
Copyright (C) Microsoft Corporation. All rights reserved.
bsd.o : fatal error LNK1107: invalid or corrupt file: cannot read at 0x4EF8
If I remove the 'try windows' everything works fine.
Running into the same problem here, especially problematic as the error is silent when it's wrapped in other scripts (i.e trying to install uWebsockets). Took me awhile to figure out that this was the problem.
The compilation failed when trying to compile in WSL env.
If I remove the 'try windows' everything works fine.