Emacs
Hi everyone!!
I was trying to do a "Hello World" C++ program in emacs but I have a little problem: The Hello World code is: #include <iostream.h> int main() { cout << " Hello World " << endl; return(0); } and when I compile appear me alot of error and warnings but when I compile in to M$ Visual C++ works fine. I made a calculator in emacs and works fine I don't know what I made wrong!! Thanks for Answers!! -----------Gerardo :cool: |
Re: Emacs
Quote:
Other than that, the syntax looks fine. slight |
The Errors are:
hello.cpp:1: error de decodificación antes de `for' hello.cpp:1:36: falta carácter terminando ' hello.cpp:1:36: aviso: constante de carácter demasiado larga hello.cpp:2: error de decodificación antes de `to' hello.cpp:3: error de decodificación antes de `text' hello.cpp:3:36: falta carácter terminando ' hello.cpp:3:36: aviso: constante de carácter demasiado larga En el fichero incluído de /usr/include/c++/3.2/backward/iostream.h:31, de hello.cpp:5: /usr/include/c++/3.2/backward/backward_warning.h:32:2: aviso: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. En el fichero incluído de /usr/include/c++/3.2/iosfwd:45, de /usr/include/c++/3.2/ios:44, de /usr/include/c++/3.2/ostream:45, de /usr/include/c++/3.2/iostream:45, de /usr/include/c++/3.2/backward/iostream.h:32, de hello.cpp:5: /usr/include/c++/3.2/bits/stringfwd.h:51: `char_traits' no es una plantilla /usr/include/c++/3.2/bits/stringfwd.h:53: `char_traits' no es una plantilla /usr/include/c++/3.2/bits/stringfwd.h:59: error de decodificación antes del elemento `<' /usr/include/c++/3.2/bits/stringfwd.h:63: error sintáctico antes del elemento `;' /usr/include/c++/3.2/bits/stringfwd.h:64: error sintáctico antes del elemento `;' En el fichero incluído de /usr/include/c++/3.2/cstddef:48, de /usr/include/c++/3.2/cstdio:50, de /usr/include/c++/3.2/i386-redhat-linux/bits/c++io.h:35, de /usr/include/c++/3.2/bits/fpos.h:44, de /usr/include/c++/3.2/iosfwd:46, de /usr/include/c++/3.2/ios:44, de /usr/include/c++/3.2/ostream:45, de /usr/include/c++/3.2/iostream:45, de /usr/include/c++/3.2/backward/iostream.h:32, de hello.cpp:5: /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:147: redeclaración en plantilla de `typedef int ptrdiff_t' /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:147: confusión por errores previos, saliendo Thanks slightcrazed!!! ------------ Gerardo, _________________________________ Linux Fast, Stable, Flexible |
All times are GMT -5. The time now is 05:03 PM. |