Browse thread
callbacks from C to Caml
-
Florent Monnier
-
Michael Wohlwend
-
Florent Monnier
- Michael Wohlwend
-
Florent Monnier
-
Michael Wohlwend
[
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: | Michael Wohlwend <micha-1@f...> |
| Subject: | Re: [Caml-list] callbacks from C to Caml |
On Tuesday 31 January 2006 12:47, Florent Monnier wrote:
> > > int main(void)
> > > {
> > > call_caml_f(2);
> > > call_caml_f(5);
> > >
> > > return 0;
> > > }
> >
> > isn't there a caml_startup(argv) missing?
>
> Yes indeed!
>
> Now there is no segfault anymore, but
> nothing happens!
>
> print_int should print something, but there is nothing at all!?..
> What could be wrong?
Maybe there is some "flushing" missing? (allthough print_newline should flush
the output...)
I used printf with "%!" at the end of the formatstring (for flushing) which
worked.
Michael