Skip to content
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

ocamlopt -output-obj and C files #8243

Closed
vicuna opened this issue Aug 18, 2003 · 1 comment
Closed

ocamlopt -output-obj and C files #8243

vicuna opened this issue Aug 18, 2003 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Aug 18, 2003

Original bug ID: 1791
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Trevor Jim
Version: 3.06
OS: OS X
Submission from: targe.cs.princeton.edu (128.112.139.194)

I don't know if you'll consider this a bug, but it seems perhaps inconsistent.

If I do

ocamlopt -output-obj -o foo.o [lots of .cmx files] pty.c

then ocamlopt compiles pty.c to pty.o, but does not link pty.o into foo.o.
I was expecting it to do so because something like

ocamlopt -o bar [lots of .cmx files] pty.c

compiles pty.c to pty.o and links pty.o into bar.

These commands are similar (both are combining binaries) so I expected
similar conventions.

@vicuna
Copy link
Author

vicuna commented Aug 26, 2003

Comment author: administrator

Not sure what the most logical behavior is. One could argue that -output-obj
just links the Caml code; everything else can be linked later. In doubt, I'll
leave it as it is now. -XL, 2003-08-26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant