Решил заново и осноательно выучить C++. Первый же код Липпмана:
include <iostream>
using namespace std;
void readLn()
{
cout<<"readLn()\n";
}
void sort()
{
cout<<"sort()\n";
}
void compact()
{
cout<<"compact()\n";
}
void print()
{
cout<<"print()\n";
}
int main()
{
readLn();
sort();
compact();
print();
return 0;
}
выдал ошибки компилятора, что $gcc book.cpp, что $g++ book.cpp выдал огромную кучу строк ошибок инклудов. Вот небольшая часть из них:
In file included from /usr/lib/gcc/i486-linux-gnu/4.3.3/include/wchar.h:33,
from /usr/include/c++/4.3/cwchar:52,
from /usr/include/c++/4.3/bits/postypes.h:47,
from /usr/include/c++/4.3/iosfwd:47,
from /usr/include/c++/4.3/ios:44,
from /usr/include/c++/4.3/ostream:45,
from /usr/include/c++/4.3/iostream:45,
from book.cpp:1:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isalnum(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:158: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isalpha(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:159: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int iscntrl(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:160: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isdigit(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:161: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isgraph(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:162: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int islower(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:163: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isprint(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:164: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int ispunct(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:165: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isspace(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:166: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isupper(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:167: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h: In function ‘int isxdigit(int)’:
/usr/lib/gcc/i486-linux-gnu/4.3.3/include/ctype.h:168: error: ‘_imp____mb_cur_max_dll’ was not declared in this scope
In file included from /usr/lib/gcc/i486-linux-gnu/4.3.3/include/wchar.h:37,
Ну, следовательно, WTF, товарищи?

Ответ на:
комментарий
от CL-USER



Ответ на:
комментарий
от P1XeL


Ответ на:
комментарий
от Spectr

Ответ на:
комментарий
от GreatCornholio

Ответ на:
комментарий
от alexsaa

Ответ на:
комментарий
от GreatCornholio

Ответ на:
комментарий
от GreatCornholio

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум wchar.h errors (2009)
- Форум кросс-компиляция, x86_64 -> i386 (2007)
- Форум ZoneMinder ошибка при компиляции в zm_ffmpeg_camera.cpp (2012)
- Форум Установка VirtualBox (2008)
- Форум g++ : проблема с компиляцией «Hello world» (2007)
- Форум Помогите разобраться с Eclipse (2009)
- Форум GTK-шные (2.х) проги не собираются.... :(( (2005)
- Форум Линковка библиотеки libjson (2014)
- Форум Мама, хочу пряник !!! (2005)
- Форум 'this' in lambda and in class method is not the same when using vector of std::thread (2021)