uSockets icon indicating copy to clipboard operation
uSockets copied to clipboard

Compilation issue when using WSL

Open 3uclid3 opened this issue 1 year ago • 1 comments

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.

3uclid3 avatar Jun 16 '24 18:06 3uclid3

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.

Hennns avatar Jul 10 '24 16:07 Hennns