1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 <2008> 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 <2008> 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Problems building with Microsoft Visual Studio 2005 (VC8) |
From: | Andrew Johnson <[email protected]> |
To: | Mark Rivers <[email protected]> |
Cc: | [email protected], [email protected] |
Date: | Tue, 27 May 2008 12:46:57 -0500 |
1) In seq 2-0-11 the executable snc.exe crashes when building state
programs. Thanks to Tim Graber, this was tracked down to the
following lines:
snc_main.c.orig: setvbuf(stdout, NULL, _IOLBF, 0);
snc_main.c.orig: setvbuf(stderr, NULL, _IOLBF, 0);
The problem lies with the final argument, SIZE. It appears that the
above syntax should be OK, because according to the Mac documentation
I found
*****
The setlinebuf() function is exactly equivalent to the call:
setvbuf(stream, (char *)NULL, _IOLBF, 0);
*****
We have found that specifying a size like 1024 seems to work, but
what is the correct way to work around this bug in VC8, if indeed
that is what it is?
- Andrew -- Talk is cheap. Show me the code. -- Linus Torvalds