День добрый. У меня Ubuntu 8.04 64-bit, libc6-dev версии 2.7-10. Проблема в том что при компиляции любой программы использующей например iostream.h, которая в свою очередь подключает wchar.h, получаем следуещее:
[code] /usr/include/wchar.h:527: error: expected initializer before ‘*’ token /usr/include/wchar.h:534: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:534: error: ‘__fp’ was not declared in this scope /usr/include/wchar.h:534: error: expected primary-expression before ‘int’ /usr/include/wchar.h:534: error: initializer expression list treated as compound expression /usr/include/wchar.h:534: error: expected ‘,’ or ‘;’ before ‘throw’ /usr/include/wchar.h:541: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:541: error: expected primary-expression before ‘__restrict__’ /usr/include/wchar.h:542: error: expected primary-expression before ‘const’ /usr/include/wchar.h:542: error: expected primary-expression before ‘...’ token /usr/include/wchar.h:542: error: initializer expression list treated as compound expression /usr/include/wchar.h:559: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:559: error: expected primary-expression before ‘__restrict__’ /usr/include/wchar.h:560: error: expected primary-expression before ‘const’ /usr/include/wchar.h:561: error: expected primary-expression before ‘__arg’ /usr/include/wchar.h:561: error: initializer expression list treated as compound expression /usr/include/wchar.h:582: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:582: error: expected primary-expression before ‘__restrict__’ /usr/include/wchar.h:583: error: expected primary-expression before ‘const’ /usr/include/wchar.h:583: error: expected primary-expression before ‘...’ token /usr/include/wchar.h:583: error: initializer expression list treated as compound expression /usr/include/wchar.h:636: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:636: error: expected primary-expression before ‘__restrict__’ /usr/include/wchar.h:637: error: expected primary-expression before ‘const’ /usr/include/wchar.h:638: error: expected primary-expression before ‘__arg’ /usr/include/wchar.h:638: error: initializer expression list treated as compound expression /usr/include/wchar.h:692: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:692: error: ‘__stream’ was not declared in this scope /usr/include/wchar.h:693: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:693: error: ‘__stream’ was not declared in this scope /usr/include/wchar.h:706: error: ‘__FILE’ has not been declared /usr/include/wchar.h:707: error: ‘__FILE’ has not been declared /usr/include/wchar.h:722: error: ‘__FILE’ has not been declared /usr/include/wchar.h:729: error: ‘__FILE’ has not been declared /usr/include/wchar.h:736: error: ‘__FILE’ has not been declared /usr/include/wchar.h:748: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:748: error: ‘__stream’ was not declared in this scope /usr/include/wchar.h:757: error: ‘__FILE’ was not declared in this scope /usr/include/wchar.h:757: error: ‘__stream’ was not declared in this scope /usr/include/wchar.h:765: error: ‘__FILE’ has not been declared /usr/include/wchar.h:774: error: ‘__FILE’ has not been declared /usr/include/wchar.h:785: error: ‘__FILE’ has not been declared /usr/include/wchar.h:794: error: ‘__FILE’ has not been declared [/code]
Переустановка вышеупомянутого пакета libc6-dev содержащего данный файл заголовков ничего не дала... Есть идеи?