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

how to configure linker on Windows #14236

Closed
3052 opened this issue Jan 14, 2024 · 4 comments
Closed

how to configure linker on Windows #14236

3052 opened this issue Jan 14, 2024 · 4 comments
Labels
kind:question platform:windows Windows support based on the MSVC toolchain / Win32 API

Comments

@3052
Copy link

3052 commented Jan 14, 2024

currently I get this message:

> crystal hello.cr
Error: Cannot locate the .lib files for the following libraries: libcmt,
advapi32, libvcruntime, shell32, ole32, WS2_32, kernel32,
legacy_stdio_definitions, DbgHelp, libucrt

here it says Visual Studio is required:

https://crystal-lang.org/install/on_windows

but here is says you can configure the linker:

#12988

so is Visual Studio required or not? if not, how do you get it working with something else?

@3052 3052 added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Jan 14, 2024
@Blacksmoke16 Blacksmoke16 added the platform:windows Windows support based on the MSVC toolchain / Win32 API label Jan 14, 2024
@straight-shoota
Copy link
Member

Yes, the compiler allows configuring the linker command.

Currently the only officially supported toolchain on Windows is MSVC.
Other linkers might work, but is not guaranteed. You can give it a try if you want 🤷

Windows support in general is still incomplete and the focus is on MSVC for now.

For further support, please reach out on https://forum.crystal-lang.org/

@straight-shoota straight-shoota added kind:question and removed kind:bug A bug in the code. Does not apply to documentation, specs, etc. labels Jan 14, 2024
@3052
Copy link
Author

3052 commented Jan 14, 2024

Post Needs Approval

We've received your new post but it needs to be approved by a moderator before it will appear. Please be patient.

You have 1 post pending.

@3052
Copy link
Author

3052 commented Jan 14, 2024

Hello,

This is an automated message from Crystal Forum to let you know that your account has been temporarily placed on hold as a precautionary measure.

Please do continue to browse, but you won’t be able to reply or create topics until a staff member reviews your most recent posts. We apologize for the inconvenience.

For additional guidance, refer to our community guidelines.

@Blacksmoke16
Copy link
Member

Post is now live on the forums. Closing in favor of https://forum.crystal-lang.org/t/how-to-configure-linker-on-windows/6321. Can re-open/create a new issue if something actionable comes out of that thread.

@Blacksmoke16 Blacksmoke16 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:question platform:windows Windows support based on the MSVC toolchain / Win32 API
Projects
None yet
Development

No branches or pull requests

3 participants