lunes, 20 de junio de 2011

Simgear logstream.hxx:192:48: error: ‘EOF’ was not declared in this scope

Datos:
Ubuntu 11.04
compilando Simgear 1.9.1

Error:
Al ejecutar make sale:

In file included from logstream.cxx:25:0:
logstream.hxx: In member function ‘virtual std::basic_streambuf <char, std::char_traits <char>>::int_type logbuf::overflow(int)’:
logstream.hxx:192:48: error: ‘EOF’ was not declared in this scope

Solución:
La publicada en la siguiente dirección:
http://bugs.gentoo.org/attachment.cgi?id=191509&action=diff

La cual detalla que en el archivo /SimGear-1.9.1/simgear/debug/logstream.hxx

-a partir de la linea 30 dice:
#ifdef _MSC_VER
# include
<windows.h>
#endif

-debería decir:
#ifdef _MSC_VER
# include
<windows.h>
#else
# include
<cstdio>
#endif


No hay comentarios:

Publicar un comentario