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
When creating a native-code library including C object files only a reference
to
these files is included in the cmxa file. This has the disadvantage that, when
changing the working directory these object files will not be found:
cd subdir
ocamlopt -a -o foo.cmxa foo.cmx bar.o
cd ..
ocamlopt -o main subdir/foo.cmxa main.cmx
yields an error that bar.o can't be found. As workaround one can use an
absolute
path:
ocamlopt -a -o foo.cmxa foo.cmx $(pwd)/bar.o
But it would be better if bar.o was added to foo.a instead of just storing
a reference in foo.cmxa.
The text was updated successfully, but these errors were encountered:
Original bug ID: 1796
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Achim Blumensath
Version: 3.07beta1
OS: Linux
Submission from: diabolo.informatik.rwth-aachen.de (137.226.53.122)
When creating a native-code library including C object files only a reference
to
these files is included in the cmxa file. This has the disadvantage that, when
changing the working directory these object files will not be found:
cd subdir
ocamlopt -a -o foo.cmxa foo.cmx bar.o
cd ..
ocamlopt -o main subdir/foo.cmxa main.cmx
yields an error that bar.o can't be found. As workaround one can use an
absolute
path:
ocamlopt -a -o foo.cmxa foo.cmx $(pwd)/bar.o
But it would be better if bar.o was added to foo.a instead of just storing
a reference in foo.cmxa.
The text was updated successfully, but these errors were encountered: