You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to pass extra MSVC linking options to ocamlc -custom/ocamlopt (e.g. to
debug CamlIDL-generated C stubs and linked C libraries with MS Visual Studio).
Unfortunately the standard -ccopt way cannot help: MSVC requires the linking
options to be the very last in the command line. In my case:
cl /link /debug
So if I use, say
ocamlc -custom ...
it will call cl as
cl ... /link /debug
That is the syntax error for cl.
What I would propose to resolve this issue:
For MSVC-build Ocaml place all -ccopt contents to the very end of the command
line (it's also OK for MSVC compiler options)
(or)
Add new -linkopt (-ldopt?) option to ocamlc/ocamlopt which will append
-linkopt contents to the end of the command line with "/link" prefix. For
non-MSVC ocamlc/ocamlopt make it equivalent to -ccopt.
The text was updated successfully, but these errors were encountered:
Original bug ID: 1130
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Dmitry Bely
Version: 3.04
OS: Windows 2000
Submission from: d218.p9.col.ru (212.248.7.218)
I need to pass extra MSVC linking options to ocamlc -custom/ocamlopt (e.g. to
debug CamlIDL-generated C stubs and linked C libraries with MS Visual Studio).
Unfortunately the standard -ccopt way cannot help: MSVC requires the linking
options to be the very last in the command line. In my case:
cl /link /debug
So if I use, say
ocamlc -custom ...
it will call cl as
That is the syntax error for cl.
What I would propose to resolve this issue:
line (it's also OK for MSVC compiler options)
(or)
-linkopt contents to the end of the command line with "/link" prefix. For
non-MSVC ocamlc/ocamlopt make it equivalent to -ccopt.
The text was updated successfully, but these errors were encountered: