a segmentation fault on minGW

Marc Lehmann schmorp at schmorp.de
Wed Dec 5 13:21:12 CET 2012


On Sat, Dec 01, 2012 at 11:57:30PM +0800, ss_liao <ss_liao at 163.com> wrote:
> I'm beginner on libev, I can compile libev-4.11 in minGW, and I write some code like this:

Your code is badly misformatted, so I mightoverlook some detail, but it looks
ok.

> ev_io_start (loop, &stdin_watcher);
> ev_timer_start (loop, &timeout_watcher);

it probably crashes on either of these lines, and if yourdebugging output is
correct (it might not be) then it's because loop is 0.

I am afraid you have to debug this yourself - however, did you compile
libev using the same compiler and flags as your program, and are you sure you
are linking to the right libev?

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list