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: 5659 Reporter:@db4 Status: closed (set by @damiendoligez on 2012-07-17T18:33:08Z) Resolution: fixed Priority: normal Severity: minor Version: 3.12.1 Target version: 4.00.0+dev Fixed in version: 4.00.0+dev Category: platform support (windows, cross-compilation, etc)
Bug description
Consider the following scenario (all files are attached below):
Note strange "-ccopt -Lc:/Ocaml/lib" that ocamlmklib generates and that is not recognized later by Microsoft C compiler. Why -L path is put into -ccopt?
Original bug ID: 5659
Reporter: @db4
Status: closed (set by @damiendoligez on 2012-07-17T18:33:08Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1
Target version: 4.00.0+dev
Fixed in version: 4.00.0+dev
Category: platform support (windows, cross-compilation, etc)
Bug description
Consider the following scenario (all files are attached below):
C:\Work\Ocaml\Bug\ocamlmklib>make.bat
C:\Work\Ocaml\Bug\ocamlmklib>ocamlc -c foo_stubs.c
foo_stubs.c
C:\Work\Ocaml\Bug\ocamlmklib>ocamlmklib -verbose -Lc:/Ocaml/lib foo.ml foo_stubs
.obj -o foo
flexlink -merge-manifest -o .\dllfoo.dll foo_stubs.obj -Lc:/Ocaml/lib
link /lib /nologo /out:.\libfoo.lib foo_stubs.obj
ocamlc -a -o foo.cma foo.ml -dllib -lfoo -cclib -lfoo -ccopt -Lc:/Ocaml/lib
ocamlopt -a -o foo.cmxa foo.ml -cclib -lfoo -ccopt -Lc:/Ocaml/lib
C:\Work\Ocaml\Bug\ocamlmklib>ocamlc -verbose foo.cma bar.ml -output-obj -o bar.obj
cl : Command line warning D9002 : ignoring unknown option '-Lc:/Ocaml/lib' bar.c
C:\Work\Ocaml\Bug\ocamlmklib>
Note strange "-ccopt -Lc:/Ocaml/lib" that ocamlmklib generates and that is not recognized later by Microsoft C compiler. Why -L path is put into -ccopt?
File attachments
The text was updated successfully, but these errors were encountered: