Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue when using WSL #223

Open
3uclid3 opened this issue Jun 16, 2024 · 1 comment
Open

Compilation issue when using WSL #223

3uclid3 opened this issue Jun 16, 2024 · 1 comment

Comments

@3uclid3
Copy link

3uclid3 commented Jun 16, 2024

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
Copy link

Hennns commented Jul 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants