Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Question on -g
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-15 (15:33)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Question on -g
> Does -g toggle a debug flag, so that an even number of -g's 
> is equivalent to not specifying any, or are are multiple 
> occurrences of -g beyond the first one just ignored?

The latter.  -g just sets a reference to "true".

> Does [ocamlc.opt] handle the -g flag?

Yes, just like ocamlc.  Both ocamlc and ocamlc.opt share exactly the
same Caml sources.

> I ask because I am unable to 
> debug my software, and I am using ocamlc.opt as my compiler.

Does switching to ocamlc make any difference?

- Xavier Leroy
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: