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
ocamlfind and linking with -g for stack backtrace
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-05 (15:58)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] ocamlfind and linking with -g for stack backtrace
On Sat, May 05, 2007 at 04:54:37PM +0100, Joel Reymont wrote:
> ocamlfind ocamlc -cclib -g -g -o netplex -package  
> "netstring,netcgi2,unix,nethttpd-for-netcgi2,netplex" \
>         -thread netplex.ml -linkpkg -g
> ./netplex -conf netplex.cfg
> (Program not linked with -g, cannot print stack backtrace)
> How do I cajole ocamlfind into passing -g to the linker?

Did you try -ccopt instead of -cclib?


Richard Jones
Red Hat