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

make it that -custom-crt does not prevent linking with libcmt.lib #74

Closed
wants to merge 1 commit into from
Closed

make it that -custom-crt does not prevent linking with libcmt.lib #74

wants to merge 1 commit into from

Conversation

oandrieu
Copy link

c.f. #51

This does removes the addition of the /nodefaultlib:LIBCMT in the command line when using the -custom-crt option.
With this, we can successfully link an OCaml program with LIBCMT by invoking ocamlopt with -ccopt -custom-crt -cclib libcmt.lib (with a suitably compiled runtime library).

fixes issue #51

@alainfrisch
Copy link
Collaborator

alainfrisch commented May 28, 2019

But wouldn't it prevent linking with other variants of the C runtime? I would have expected that /nodefaultlib:LIBCMT doesn't hurt if libcmt.lib is passed explicitly. Is it an ordering problem between libraries?

@oandrieu
Copy link
Author

Err yeah indeed, /nodefaultlib:LIBCMT doesn't hurt. I'm not quite sure what Christophe's issue was about then.
Nevermind, sorry for the noise Alain.

@oandrieu oandrieu closed this May 29, 2019
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

Successfully merging this pull request may close these issues.

3 participants