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: 5484 Reporter: barnier Assigned to:@lefessan Status: closed (set by @xavierleroy on 2013-08-31T10:44:28Z) Resolution: won't fix Priority: normal Severity: minor Platform: amd64 OS: Debian Linux OS Version: 3.1 Version: 3.12.1 Category: ~DO NOT USE (was: OCaml general)
Bug description
The -for-pack option is sensitive to the order on the compilation command line
and must be placed before the .ml source file, but AFAIK it is not mentioned
in the documentation - so I assumed it's more a bug than a feature.
Steps to reproduce
[a.ml]
type t = float
ocamlopt.opt -c a.ml -for-pack P
ocamlopt.opt -o p.cmx a.cmx -pack
File "p.cmx", line 1, characters 0-1:
Error: File a.cmx
was not compiled with the `-for-pack P' option
The text was updated successfully, but these errors were encountered:
That's true for all options used with "-c": when a source filename is found on the command-line, the compiler immediatly compiles it, taking into account only arguments given before it (i.e. -pp, -I, etc. are not taken into account if placed after the filename).
Original bug ID: 5484
Reporter: barnier
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2013-08-31T10:44:28Z)
Resolution: won't fix
Priority: normal
Severity: minor
Platform: amd64
OS: Debian Linux
OS Version: 3.1
Version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)
Bug description
The -for-pack option is sensitive to the order on the compilation command line
and must be placed before the .ml source file, but AFAIK it is not mentioned
in the documentation - so I assumed it's more a bug than a feature.
Steps to reproduce
[a.ml]
type t = float
ocamlopt.opt -c a.ml -for-pack P
ocamlopt.opt -o p.cmx a.cmx -pack
File "p.cmx", line 1, characters 0-1:
Error: File a.cmx
was not compiled with the `-for-pack P' option
The text was updated successfully, but these errors were encountered: