English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-03-28 (14:10)
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  
Command exited with code 2.

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

	Thanks, Joel