Version française
Home     About     Download     Resources     Contact us    
Browse thread
Producing a C wrapper with ocamlbuild or OMake
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Producing a C wrapper with ocamlbuild or OMake

On Mar 28, 2007, at 2:57 PM, Nicolas Pouillard wrote:

>    flag ["ocaml"; "link"; "output_obj"] (A"-output-obj");
>    (* I will make this one part of the standard set of flags *)

Wouldn't this set of flags conflict with my previous

flag ["ocaml"; "link"] (A"-linkpkg");;

I replaced the flags and now get

ocamlbuild test.byte --

+ ocamlfind ocamlc -package ounit easy_code.cmo ninja.cmo easy.cmo  
ninja_morph.cmo parser_util.cmo symtab.cmo easy_parser.cmo  
easy_lexer.cmo parser_test.cmo pretty.cmo ppninja.cmo  
ninja_morph_test.cmo test.cmo -o test.byte
Error while linking parser_test.cmo: Reference to undefined global  
`OUnit'
Command exited with code 2.

What's the flag syntax to add -linkpkg to -output-obj?

	Thanks, Joel

--
http://wagerlabs.com/