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] Getting debugging symbols in ocamlopt-generated executable
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-08-20 (13:38)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Getting debugging symbols in ocamlopt-generated executable
> This produces exceldemo.opt.exe (which crashes), but VC++ tells me
> that this executable doesn't contain any symbols. Debugging the
> assembly is not much fun.
> How do I get symbols?

You could try to pass the appropriate option to the C linker using
-ccopt during the final link stage.
For the MSVC port:
        ocamlopt -ccopt /Zi ....
For the Mingw port:
        ocamlopt -ccopt -g ...

I'm not 100% sure it works, but it's worth a try.

- Xavier Leroy

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