-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify how -c
and -o
are supposed to work.
#7677
Comments
Comment author: @xavierleroy Yes, it's a mess. Let's try to at least agree on what behavior is intended. I'll restart the discussion at #761 |
Comment author: @damiendoligez If I remember correctly, some C compilers do not support outputting files in a different directory. When given "-o outdir/outfile", they would create "outfile" in the current directory. Hence the restriction added by Fabrice. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
AFAIR this is still a mess and should be clarified. |
I just checked and even cl knows how to put object files in a directory I thus think this issue could and should be fixed and shall work on it. |
It is my belief that the present issue has been fixed by #9960, which |
Original bug ID: 7677
Reporter: @dbuenzli
Status: acknowledged (set by @xavierleroy on 2017-11-26T16:25:09Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.06.0
Target version: 4.07.0+dev/beta2/rc1/rc2
Category: documentation
Monitored by: @dbuenzli @yakobowski
Bug description
The release notes of 4.04.0 point to
da56cf6
as explaining that. However it seems that part of this work was invalidated by:
#761
and nowadays trying to use
ocamlc -o DEST -c file.c
results in the following error:Options -c and -o are incompatible when compiling C files
It seems build systems using ocaml are doomed for life to need to move the produced
file.o
manually from thecwd
to the desired destination directory.The text was updated successfully, but these errors were encountered: