>Трям. А тоже понятия не имею об этой Анюте.
>
>Лучше всего связки vim+gcc либо emacs+gcc.
>
>Давайте сюда Вашу прогу, расковыряем ее и глянем, что не так.
лезу в emacs... пишу код, в менюхе тулс->компайл. Предлагается ввести комманду "make -k". Жму ентер:
make -k
make: *** No targets specified and no makefile found. Stop.
Compilation exited abnormally with code 2 at Thu Dec 18 11:38:16
Плз, объясните, что мне необходимо зделать, чтобы скомпилировать с++шный исходник? Уже за 3 дня устал.. перебрал кучу ide.. половину установить не могу, половина не хочет компилировать самые простые исходники :(
Попробывал сделать как выше сказано... создал просто черед MC сппшный файл:
#include <iostream>
int main () {
cout << "llala";
return 0;
}
Говорит:
gcc -o la la.cpp
la.cpp: In function `int main()':
la.cpp:3: `cout' undeclared (first use this function)
la.cpp:3: (Each undeclared identifier is reported only once for each function
it appears in.)
Если пишу "iostream.h" -
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from la.cpp:1:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This fi
le 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 in
clude substituting the <X> header for the <X.h> header for C++ includes, or <sst
ream> instead of the deprecated header <strstream.h>. To disable this warning us
e -Wno-deprecated.
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from la.cpp:1:
/usr/include/c++/3.2/backward/backward_warning.h:43: parse error before `['
token
In file included from /usr/include/c++/3.2/iosfwd:45,
from /usr/include/c++/3.2/ios:44,
from /usr/include/c++/3.2/ostream:45,
from /usr/include/c++/3.2/iostream:45,
from /usr/include/c++/3.2/backward/iostream.h:32,
from la.cpp:1:
/usr/include/c++/3.2/bits/stringfwd.h:51: `char_traits' is not a template
/usr/include/c++/3.2/bits/stringfwd.h:53: `char_traits' is not a template
/usr/include/c++/3.2/bits/stringfwd.h:59: parse error before `<' token
/usr/include/c++/3.2/bits/stringfwd.h:63: syntax error before `;' token
/usr/include/c++/3.2/bits/stringfwd.h:64: syntax error before `;' token
In file included from /usr/include/c++/3.2/cstddef:48,
from /usr/include/c++/3.2/cstdio:50,
from /usr/include/c++/3.2/i386-redhat-linux/bits/c++io.h:35,
from /usr/include/c++/3.2/bits/fpos.h:44,
from /usr/include/c++/3.2/iosfwd:46,
from /usr/include/c++/3.2/ios:44,
from /usr/include/c++/3.2/ostream:45,
from /usr/include/c++/3.2/iostream:45,
from /usr/include/c++/3.2/backward/iostream.h:32,
from la.cpp:1:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:147: template
declaration of `typedef int ptrdiff_t'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:147: confused by earlier errors, bailing out
ЧТо делать не знаю :(