Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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?

Rich.

-- 
Richard Jones
Red Hat