Panico! Due giorni all'esame e DEV C++ mi si è buggato!

di Anonimizzato18496 il
4 risposte
Ogni programma che compilo mi esce questo errrore:

Come risolvere?

#include <istream>

namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION

/**
* @name Standard Stream Objects
*
* The <iostream> header declares the eight <em>standard stream
* objects</em>. For other declarations, see
*
* and the @link iosfwd I/O forward declarations @endlink
*
* They are required by default to cooperate with the global C
* library's @c FILE streams, and to be available during program
* startup and termination. For more information, see the section of the
* manual linked to above.
*/
//@{
extern istream cin; /// Linked to standard input
extern ostream cout; /// Linked to standard output
extern ostream cerr; /// Linked to standard error (unbuffered)
extern ostream clog; /// Linked to standard error (buffered)

#ifdef _GLIBCXX_USE_WCHAR_T
extern wistream wcin; /// Linked to standard input
extern wostream wcout; /// Linked to standard output
extern wostream wcerr; /// Linked to standard error (unbuffered)
extern wostream wclog; /// Linked to standard error (buffered)
#endif
//@}

// For construction of filebuffers for cout, cin, cerr, clog et. al.
static ios_base::Init __ioinit;

_GLIBCXX_END_NAMESPACE_VERSION
} // namespace

#endif /* _GLIBCXX_IOSTREAM */

4 Risposte

  • Partiamo dal concetto che DevC++ è una pessima scelta "a prescindere".

    Però non capisco il problema di cui lamenti.

    Quel messaggio è l'errore? Sei sicuro che non ci siano altre indicazioni prima o dopo?

    E poi cosa è quella linea

    #include <istream>

    ?

    Non è che volevi scrivere

    #include <iostream>
  • Nessun problema di compilazione perché ad esempio anche "hello world" mi da questo errore. Credo sia un errore di Dev. Intanto puoi dirmi quale altro compilatore usare? Grazie e scusami ma mi si è verificato questo BUG a due giorni dall'esame
  • Ma tu compili file .c o .cpp ?

    DevC++ è un IDE che in genere usa mingw. Potresti anche usare CodeBlocks con gcc oppure Visual C++
  • Ok grazie mille!!
Devi accedere o registrarti per scrivere nel forum
4 risposte