OCAMLMKTOP(1) General Commands Manual OCAMLMKTOP(1)NAME
ocamlmktop - Building custom toplevel systems
SYNOPSIS
ocamlmktop [ -v|-version|-vnum ] [ -cclib libname ] [ -ccopt option ] [ -custom [ -o exec-file ] [ -I lib-dir ] filename ...
DESCRIPTION
The ocamlmktop(1) command builds Objective Caml toplevels that contain user code preloaded at start-up. The ocamlmktop(1) command takes as
argument a set of x.cmo and x.cma files, and links them with the object files that implement the Objective Caml toplevel. If the -custom
flag is given, C object files and libraries (.o and .a files) can also be given on the command line and are linked in the resulting
toplevel.
OPTIONS
The following command-line options are recognized by ocamlmktop(1).
-v Print the version string of the compiler and exit.
-vnumor-version
Print the version number of the compiler in short form and exit.
-cclib -llibname
Pass the -llibname option to the C linker when linking in ``custom runtime'' mode (see the corresponding option for ocamlc(1).
-ccopt Pass the given option to the C compiler and linker, when linking in ``custom runtime'' mode. See the corresponding option for
ocamlc(1).
-custom
Link in ``custom runtime'' mode. See the corresponding option for ocamlc(1).
-I directory
Add the given directory to the list of directories searched for compiled interface files (.cmo and .cma).
-o exec-file
Specify the name of the toplevel file produced by the linker. The default is is a.out.
SEE ALSO ocamlc(1).
OCAMLMKTOP(1)
Check Out this Related Man Page
OCAMLMKLIB(1) General Commands Manual OCAMLMKLIB(1)NAME
ocamlmklib - generate libraries with mixed C / Caml code.
SYNOPSIS
ocalmklib [options] files
DESCRIPTION
The ocamlmklib command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking
and dynamic linking modes.
OPTIONS -h, --help
Show summary of options.
-cclib lib
C library passed to ocamlc -a or ocamlopt(1)-a only.
-ccopt opt
C option passed to ocamlc(1)-a or ocamlopt(1)-a only.
-custom
Disable dynamic loading.
-dllpath dir
Add dir to the run-time search path for DLLs.
-I dir Add dir to the path searched for Caml object files.
-failsafe
Fall back to static linking if DLL construction failed.
-ldopt opt
C option passed to the shared linker only.
-linkall
Build Caml archive with link-all behavior.
-llib Specify a dependent C library.
-Ldir Add dir to the path searched for C libraries.
-ocamlc cmd
Use cmd in place of ocamlc(1).
-ocamlopt cmd
Use cmd in place of ocamlopt(1).
-o name
Generated Caml library is named name.cma or name.cmxa.
-oc name
Generated C library is named dllname.so or libname.a.
-rpath dir
Same as -dllpath dir.
-Rdir Same as -rpath.
-verbose
Print commands before executing them.
-Wl, -rpath dir
Same as -dllpath dir.
-Wl, -rpath -Wl dir
Same as -dllpath dir.
-Wl, -Rdir
Same as -dllpath dir.
-Fdir Specify a framework directory (MacOSX).
-framework name
Use framework name (MacOSX).
SEE ALSO ocamlc(1), ocamlopt(1).
AUTHOR
This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>, for the Debian project (but may be used by others).
August 19, 2004 OCAMLMKLIB(1)
Hi,
I have written a makefile and am facing some problem in linking..
This is the first makefile i write.. i think that am just compiling all the .c files and not linking the object files.. can anybody tell me how to link all the .o files???
When i do make all i am getting the following... (1 Reply)
Hi all.
I'm getting the a runtime error:
aCC runtime: Use of "-mt" must be consistent during both compilation and linking
I build my executable with -mt and I link with libraries that were compiled with -mt too (we have other executables that links with them and don't have this problem).... (1 Reply)
Dear friends,
First off all , let me apologize for my inexperience. I am just starting use of Linux and gcc .
Actually I ve some .c files in the present directory , and now I am
giving
+vc <my_file1.c> <my.file2.c> <myfile3.c>.
All the c files are in present directory.... (2 Replies)
I use Solaris 10, compiling with a custom g++ (3.4.6) and GNU binutils (2.17). Things have gone well on two different systems, but when I tried moving to a third, it all fell over. Basically, it is now using the CC linker, but I need to use options not available to it. I believe I have found the... (0 Replies)
Hello all, I am new to programming and currently I am taking a swing at Objective-C. I easily compile my programs on my Macintosh, and have compiled some Objective-C programs on my linux box.
The problem I am having is when I try to use features demonstrated in the book Programming in... (4 Replies)
I just started learning my first language 6 months ago; I chose C, because it is the ancestor of many more modern languages. I am now about to move on to Objective-C. I was also wondering, what other languages are supported in XCode, and how do you access them?
A more relevant question for me is... (1 Reply)
I'm facing an issue in which my program is using a custom library (say, libxyz.so) which is compiled using libstdc++.so.5 and the system I'm using this library to create an executable from my program, has libstdc++so.6 as well as libstdc++.so.5; both available under /usr/lib directory.
There are... (8 Replies)
Hi Experts,
ps command behavior in Redhat is such that it outputs all the output(of long lengths). In Unix the ps command output was limited to only 80 chars. In that if you pipe its output to another command hen the 80 chars restriction wouldn't be there. This 80 char limitation will only be... (14 Replies)