uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.26k stars 259 forks source link

Compilation issue when using WSL #223

Open 3uclid3 opened 2 months ago

3uclid3 commented 2 months ago

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.

Hennns commented 2 months ago

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.