Browse thread
ocamlnet and getting a stack trace
- Joel Reymont
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Joel Reymont <joelr1@g...> |
| Subject: | ocamlnet and getting a stack trace |
This is driving me nuts so I appreciate any help you can give me! Despite my valiant efforts to insert -g into every invocation of "ocamlfind ocamlc", I cannot get a stack trace out of the sample ocamlnet app that I'm debugging. I keep getting Fatal error: exception Unix.Unix_error(49, "", "") (Program not linked with -g, cannot print stack backtrace) Has anyone had success with getting a stacktrace from ocamlnet before? A minimal app that I wrote up produces a stack trace just fine so this must be something in my ocaml pipeline. I can't figure out what, though. I'm trying to build the netplex example in ocamlnet/code/src/examples/ nethttpd: ocamlfind ocamlc -g -o netplex -package "netstring,netcgi2,unix,nethttpd-for-netcgi2,netplex" -thread netplex.ml -linkpkg -g I also have this in my ocamlnet Makefile.conf: # Additional options only for ocamlc: OCAMLC_OPTIONS = -g # Additional options only for ocamlopt: OCAMLOPT_OPTIONS = -g Thanks, Joel -- http://wagerlabs.com/