Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007677OCamldocumentationpublic2017-11-22 19:032018-01-16 10:47
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version4.06.0 
Target Version4.07.0+dev/beta2/rc1/rc2Fixed in Version 
Summary0007677: Clarify how `-c` and `-o` are supposed to work.
DescriptionThe release notes of 4.04.0 point to [^]

as explaining that. However it seems that part of this work was invalidated by: [^]

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 the `cwd` to the desired destination directory.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
xleroy (administrator)
2017-11-26 17:25

Yes, it's a mess. Let's try to at least agree on what behavior is intended. I'll restart the discussion at [^]
doligez (administrator)
2018-01-16 10:47

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.

- Issue History
Date Modified Username Field Change
2017-11-22 19:03 dbuenzli New Issue
2017-11-26 17:25 xleroy Note Added: 0018692
2017-11-26 17:25 xleroy Status new => acknowledged
2017-11-26 17:25 xleroy Target Version => 4.07.0+dev/beta2/rc1/rc2
2018-01-16 10:47 doligez Note Added: 0018835

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker