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
Original bug ID: 5234 Reporter:@db4 Status: closed (set by @damiendoligez on 2011-05-17T14:14:58Z) Resolution: fixed Priority: normal Severity: major Version: 3.12.0 Fixed in version: 3.12.1+dev Category: ~DO NOT USE (was: OCaml general) Related to:#5260
Bug description
Consider the following example (Windows, MSVC port):
Original bug ID: 5234
Reporter: @db4
Status: closed (set by @damiendoligez on 2011-05-17T14:14:58Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.12.0
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #5260
Bug description
Consider the following example (Windows, MSVC port):
foo.ml:
let x = 1
bar.ml:
let _ = Printf.printf "%d\n" Foo.x
ocamlopt -a -o foo.cmxa -cclib -defaultlib -cclib msvcrt.lib foo.ml
ocamlopt -verbose -o bar.exe foo.cmxa bar.ml
gives
"-LC:\Ocaml\lib" "C:\DOCUME
1\dbely\LOCALS1\Temp\camlstartup799bea.obj""C:\Ocaml\lib\std_exit.obj" "bar.obj" "foo.lib" "C:\Ocaml\lib\stdlib.lib"
"-defaultlib" "msvcrt.lib" "C:\Ocaml\lib\libasmrun.lib" advapi32.lib
ws2_32.lib
(correct)
ocamlopt -verbose -shared -o bar.cmxs foo.cmxa bar.ml
gives
"bar.cmxs.startup.obj" "bar.obj" "foo.lib" "msvcrt.lib" "-defaultlib"
flexlink: option `-defaultlib' needs an argument.
Note that "-defaultlib" "msvcrt.lib" order is reversed.
The text was updated successfully, but these errors were encountered: