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
documentation bug #2441
Comments
Comment author: administrator here's what I did. . .I probably just don't understand something: bash-2.04$ ocamlc -c syslogwrap.c #I didn't follow the docs exactly, so I'll try it with the cclib option #on the other hand; the following works fine: If you need anything else, just email me. BTW: is the -a option deprecated? --Brad --text follows this line--
Could you explain more why it "doesn't work as advertised"? This
It's not "more correct": it does something different. It could very well be that the documentation is not clear enough, and Regards,
|
Comment author: administrator
Could you explain more why it "doesn't work as advertised"? This
It's not "more correct": it does something different. It could very well be that the documentation is not clear enough, and Regards,
|
Comment author: administrator
Actually, you're correct, something is wrong in the documentation and
There's a missing "-a" option to instruct ocamlc to build a library
Right. Actually, the key option here is "-a"; "-make-runtime" is Thanks for the bug report,
|
Comment author: administrator Fixed on 2000/05/09 by Xavier. Also related to #2471. |
Original bug ID: 103
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Brad Knotwell
Version: 3.00
OS: NetBSD1.4.2 x86
Submission from: user-2ini98i.dialup.mindspring.com (165.121.37.18)
section 17.1.3 of the documentation is quite confusing and apparently
incorrect. specifically, the following information doesn't work
as advertised:
ocamlc -o mylib.cma -custom a.cmo b.cmo -cclib -lmylib
From my experience, something like the following is more correct:
ocamlc -a -make-runtime -o mylib.cma -custom a.cmo b.cmo -cclib -lmylib
For a more complete example, I've put a small syslog library on the
web at the following url: http://pweb.netcom.com/~knotwell/syslog.tar
The Makefile in the tarball explicitly shows the commands necessary
to build (under NetBSD anyhow) "easy linkable" native and bytecode
libraries.
Or I could be wrong. . .
The text was updated successfully, but these errors were encountered: