C++ <iostream> powoduje błędy

Bash, C, C++, Java, PHP, Ruby, GTK, Qt i wiele innych - wszystko tutaj.
Awatar użytkownika
kaczorexus
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 12 maja 2009, 16:48
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

C++ <iostream> powoduje błędy

Post autor: kaczorexus »

Witam mam problem z kompilatorami C++

pamiętam ze miałem kompilator CODE BLOCKS na UBUNTU karmelkowy koliberek
i działał poprawnie a teraz na UBUNTU 10.04 mam problem bo nawet to czystego projektu z napisem Hello World po załączeniu biblioteki IOSTREAM wyrzuca mi coś masakrycznego

Kod: Zaznacz cały

g++ -Wall -o "main" "main.cpp" (w katalogu /media/DATA/Ważne/Cpp & ms dos & windows/C++/projekt)
In file included from /usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,
                 from /usr/include/c++/4.4/iostream:39,
                 from main.cpp:1:
/usr/include/features.h:346:25: error: /usr/include/c++/4.4/sys/cdefs.h: Permission denied
In file included from /usr/include/c++/4.4/cwchar:47,
                 from /usr/include/c++/4.4/bits/postypes.h:42,
                 from /usr/include/c++/4.4/iosfwd:42,
                 from /usr/include/c++/4.4/ios:39,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/c++/4.4/wchar.h:50:23: error: /usr/include/c++/4.4/sys/types.h: Permission denied
In file included from /usr/include/c++/4.4/cwchar:47,
                 from /usr/include/c++/4.4/bits/postypes.h:42,
                 from /usr/include/c++/4.4/iosfwd:42,
                 from /usr/include/c++/4.4/ios:39,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/c++/4.4/wchar.h:394: error: ?_dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:395: error: ?_ino_t? does not name a type
/usr/include/c++/4.4/wchar.h:396: error: ?_mode_t? does not name a type
/usr/include/c++/4.4/wchar.h:400: error: ?_dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:401: error: ?_off_t? does not name a type
/usr/include/c++/4.4/wchar.h:412: error: ?dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:413: error: ?ino_t? does not name a type
/usr/include/c++/4.4/wchar.h:414: error: ?mode_t? does not name a type
/usr/include/c++/4.4/wchar.h:418: error: ?dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:419: error: ?off_t? does not name a type
In file included from /usr/include/c++/4.4/bits/postypes.h:42,
                 from /usr/include/c++/4.4/iosfwd:42,
                 from /usr/include/c++/4.4/ios:39,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/c++/4.4/cwchar:145: error: ?::fgetws? has not been declared
/usr/include/c++/4.4/cwchar:147: error: ?::fputws? has not been declared
/usr/include/c++/4.4/cwchar:151: error: ?::getwc? has not been declared
/usr/include/c++/4.4/cwchar:152: error: ?::getwchar? has not been declared
/usr/include/c++/4.4/cwchar:157: error: ?::putwc? has not been declared
/usr/include/c++/4.4/cwchar:158: error: ?::putwchar? has not been declared
In file included from /usr/include/c++/4.4/bits/localefwd.h:42,
                 from /usr/include/c++/4.4/ios:42,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:52: error: ?uselocale? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:52: error: invalid type in declaration before ?;? token
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:59: error: ?__locale_t? does not name a type
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:66: error: expected ?,? or ?...? before ?&? token
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h: In function ?int std::__convert_from_v(int)?:
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:72: error: expected ?;? before ?__old?
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:86: error: ?__fmt? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:89: error: ?__out? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:89: error: ?__size? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:97: error: ?__old? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:97: error: ?__gnu_cxx::__uselocale? cannot be used as a function
In file included from /usr/include/sched.h:32,
                 from /usr/include/pthread.h:25,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/c++/4.4/time.h: At global scope:
/usr/include/c++/4.4/time.h:187: error: expected constructor, destructor, or type conversion before ?char?
In file included from /usr/include/sched.h:35,
                 from /usr/include/pthread.h:25,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/bits/sched.h:80: error: expected constructor, destructor, or type conversion before ?extern?
/usr/include/bits/sched.h:84: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:87: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:98: error: expected constructor, destructor, or type conversion before ?struct?
/usr/include/bits/sched.h:198: error: expected constructor, destructor, or type conversion before ?extern?
/usr/include/bits/sched.h:200: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:201: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:203: error: ?__END_DECLS? does not name a type
In file included from /usr/include/pthread.h:25,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/sched.h:47: error: expected initializer before ?__THROW?
/usr/include/sched.h:51: error: expected initializer before ?__THROW?
/usr/include/sched.h:54: error: expected initializer before ?__THROW?
/usr/include/sched.h:57: error: expected initializer before ?__THROW?
/usr/include/sched.h:60: error: expected initializer before ?__THROW?
/usr/include/sched.h:63: error: expected initializer before ?__THROW?
/usr/include/sched.h:66: error: expected initializer before ?__THROW?
/usr/include/sched.h:111: error: expected initializer before ?__THROW?
/usr/include/sched.h:115: error: expected initializer before ?__THROW?
In file included from /usr/include/pthread.h:29,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/c++/4.4/signal.h:46: error: expected constructor, destructor, or type conversion before ?typedef?
In file included from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from main.cpp:1:
/usr/include/pthread.h:227: error: expected constructor, destructor, or type conversion before ?extern?
/usr/include/pthread.h:249: error: expected initializer before ?__THROW?
/usr/include/pthread.h:265: error: expected initializer before ?__THROW?
/usr/include/pthread.h:269: error: expected initializer before ?__THROW?
/usr/include/pthread.h:272: error: expected initializer before ?__THROW?
/usr/include/pthread.h:280: error: expected initializer before ?__THROW?
/usr/include/pthread.h:284: error: expected initializer before ?__THROW?
/usr/include/pthread.h:289: error: expected initializer before ?__THROW?
/usr/include/pthread.h:294: error: expected initializer before ?__THROW?
/usr/include/pthread.h:300: error: expected initializer before ?__THROW?
/usr/include/pthread.h:305: error: expected initializer before ?__THROW?
/usr/include/pthread.h:312: error: expected initializer before ?__THROW?

to tylko ćwierć błędów całość się nie mieści :-x
kompilatora nic nie zmienia w każdym jest to samo
Ja wymiękam ... pomocy :neutral:
nwkj
Sędziwy Jeż
Sędziwy Jeż
Posty: 33
Rejestracja: 08 sie 2009, 14:53
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: KDE Plasma

Odp: C++ <iostream> powoduje błędy

Post autor: nwkj »

Pokaż przykładowy kod na którym Ci się wykłada.
Awatar użytkownika
beluosus
Zakręcona Traszka
Zakręcona Traszka
Posty: 695
Rejestracja: 01 paź 2006, 15:32
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Xfce
Architektura: x86
Kontakt:

Odp: C++ <iostream> powoduje błędy

Post autor: beluosus »

Pokaż przykładowo:

Kod: Zaznacz cały

ls -l /usr/include/c++/4.4/sys/cdefs.h
U mnie ten plik ma:

Kod: Zaznacz cały

-rw-r--r-- 1 root root
Kurs Linuksa: for i in $(ls /bin); do man $i; done
__________________
http://beluosus.pl/
Awatar użytkownika
kaczorexus
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 12 maja 2009, 16:48
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: C++ <iostream> powoduje błędy

Post autor: kaczorexus »

nwkj pisze:Pokaż przykładowy kod na którym Ci się wykłada.
przykładowy kod:

Kod: Zaznacz cały

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}
wynik ls -l /usr/include/c++/4.4/sys/cdefs.h :

Kod: Zaznacz cały

root@aras-desktop:/home/aras# ls -l /usr/include/c++/4.4/sys/cdefs.h
ls: nie ma dostępu do /usr/include/c++/4.4/sys/cdefs.h: No such file or directory
nie takiego pliku
mikolajs
Wytworny Kaczor
Wytworny Kaczor
Posty: 352
Rejestracja: 15 paź 2008, 18:30
Płeć: Mężczyzna
Wersja Ubuntu: 9.04
Środowisko graficzne: KDE Plasma

Odp: C++ <iostream> powoduje błędy

Post autor: mikolajs »

A czy przypadkiem nie upgradowałeś Ubuntu ze starej wersji na nową?
Możesz spróbować odinstalować libstdc++6.4.4-dev i g++ i zainstalować od nowa.
Nie istnieje plik /usr/include/c++/4.4/sys/cdefs.h , jest za to /usr/include/sys/cdefs.h
Zobacz co masz w katalogu /usr/include/c++ (ls -l)

EDIT:
Taki plik nie istnieje. Jest tylko /usr/include/sys/cdefs.h
Może robiłeś dis-upgrade Ubuntu i coś się pochrzaniło w paczkach?
Spróbuj przeinstalować paczki devel stdlibc++ i g++, a pliki kompilować w katalogu domowym.
Awatar użytkownika
Hauleth
Wytworny Kaczor
Wytworny Kaczor
Posty: 382
Rejestracja: 18 sie 2008, 17:43
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: GNOME
Architektura: x86

Odp: C++ <iostream> powoduje błędy

Post autor: Hauleth »

a może ma w /usr/include/c++/4.5
Jeśli problem rozwiązany dodaj na początku tematu [SOLVED].

Biblioteka do C++ - Bust Lib: http://code.google.com/p/bust/
Awatar użytkownika
kaczorexus
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 12 maja 2009, 16:48
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: C++ <iostream> powoduje błędy

Post autor: kaczorexus »

mikolajs pisze:A czy przypadkiem nie upgradowałeś Ubuntu ze starej wersji na nową?
Możesz spróbować odinstalować libstdc++6.4.4-dev i g++ i zainstalować od nowa.
Nie istnieje plik /usr/include/c++/4.4/sys/cdefs.h , jest za to /usr/include/sys/cdefs.h
Zobacz co masz w katalogu /usr/include/c++ (ls -l)

EDIT:
Taki plik nie istnieje. Jest tylko /usr/include/sys/cdefs.h
Może robiłeś dis-upgrade Ubuntu i coś się pochrzaniło w paczkach?
Spróbuj przeinstalować paczki devel stdlibc++ i g++, a pliki kompilować w katalogu domowym.
no był Upgrade

w synaptic nie mam takich paczek jak devel stdlibc++ i g++
może nie mam jakiegoś repozytoria wpisanego ?

wynik ls -l /usr/include/c++:

Kod: Zaznacz cały

razem 16
drwx------  7 root root  4096 2010-03-17 18:59 3.4.5
drwxr-xr-x 14 root root 12288 2010-07-04 01:38 4.4
lrwxrwxrwx  1 root root     3 2010-05-12 21:51 4.4.3 -> 4.4
faktycznie plik cdefs.h jest w /usr/include/sys/

kompilacja w katalogu domowym nic nie zmienia
mikolajs
Wytworny Kaczor
Wytworny Kaczor
Posty: 352
Rejestracja: 15 paź 2008, 18:30
Płeć: Mężczyzna
Wersja Ubuntu: 9.04
Środowisko graficzne: KDE Plasma

Odp: C++ <iostream> powoduje błędy

Post autor: mikolajs »

w synaptic nie mam takich paczek jak devel stdlibc++ i g++
może nie mam jakiegoś repozytoria wpisanego ?
Pierwsza paczka to libstdc++6-4.4-dev (albo coś podobnego), a drugą g++ lub g++-4.4 musisz mieć bo inaczej nie mógłbyś kompilować w g++ :)
spróbuj w konsoli

Kod: Zaznacz cały

sudo apt-get remove g++ libstdc++6-4.4-dev
a potem zamiast remove install to samo.
Awatar użytkownika
kaczorexus
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 12 maja 2009, 16:48
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: C++ <iostream> powoduje błędy

Post autor: kaczorexus »

coś się zmieniło ale nadal wywala błędy

Kod: Zaznacz cały

-------------- Build: Debug in FTP Sender ---------------

Compiling: main.cpp
In file included from /usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,
                 from /usr/include/c++/4.4/iostream:39,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/features.h:346:25: error: /usr/include/c++/4.4/sys/cdefs.h: Permission denied
In file included from /usr/include/c++/4.4/cwchar:47,
                 from /usr/include/c++/4.4/bits/postypes.h:42,
                 from /usr/include/c++/4.4/iosfwd:42,
                 from /usr/include/c++/4.4/ios:39,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/c++/4.4/wchar.h:50:23: error: /usr/include/c++/4.4/sys/types.h: Permission denied
In file included from /usr/include/c++/4.4/cwchar:47,
                 from /usr/include/c++/4.4/bits/postypes.h:42,
                 from /usr/include/c++/4.4/iosfwd:42,
                 from /usr/include/c++/4.4/ios:39,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/c++/4.4/wchar.h:394: error: ?_dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:395: error: ?_ino_t? does not name a type
/usr/include/c++/4.4/wchar.h:396: error: ?_mode_t? does not name a type
/usr/include/c++/4.4/wchar.h:400: error: ?_dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:401: error: ?_off_t? does not name a type
/usr/include/c++/4.4/wchar.h:412: error: ?dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:413: error: ?ino_t? does not name a type
/usr/include/c++/4.4/wchar.h:414: error: ?mode_t? does not name a type
/usr/include/c++/4.4/wchar.h:418: error: ?dev_t? does not name a type
/usr/include/c++/4.4/wchar.h:419: error: ?off_t? does not name a type
In file included from /usr/include/c++/4.4/bits/postypes.h:42,
                 from /usr/include/c++/4.4/iosfwd:42,
                 from /usr/include/c++/4.4/ios:39,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/c++/4.4/cwchar:145: error: ?::fgetws? has not been declared
/usr/include/c++/4.4/cwchar:147: error: ?::fputws? has not been declared
/usr/include/c++/4.4/cwchar:151: error: ?::getwc? has not been declared
/usr/include/c++/4.4/cwchar:152: error: ?::getwchar? has not been declared
/usr/include/c++/4.4/cwchar:157: error: ?::putwc? has not been declared
/usr/include/c++/4.4/cwchar:158: error: ?::putwchar? has not been declared
In file included from /usr/include/c++/4.4/bits/localefwd.h:42,
                 from /usr/include/c++/4.4/ios:42,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:52: error: ?uselocale? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:52: error: invalid type in declaration before ?;? token
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:59: error: ?__locale_t? does not name a type
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:66: error: expected ?,? or ?...? before ?&? token
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h: In function ?int std::__convert_from_v(int)?:
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:72: error: expected ?;? before ?__old?
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:86: error: ?__fmt? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:89: error: ?__out? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:89: error: ?__size? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:97: error: ?__old? was not declared in this scope
/usr/include/c++/4.4/i486-linux-gnu/bits/c++locale.h:97: error: ?__gnu_cxx::__uselocale? cannot be used as a function
In file included from /usr/include/sched.h:32,
                 from /usr/include/pthread.h:25,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/c++/4.4/time.h: At global scope:
/usr/include/c++/4.4/time.h:187: error: expected constructor, destructor, or type conversion before ?char?
In file included from /usr/include/sched.h:35,
                 from /usr/include/pthread.h:25,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/bits/sched.h:80: error: expected constructor, destructor, or type conversion before ?extern?
/usr/include/bits/sched.h:84: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:87: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:98: error: expected constructor, destructor, or type conversion before ?struct?
/usr/include/bits/sched.h:198: error: expected constructor, destructor, or type conversion before ?extern?
/usr/include/bits/sched.h:200: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:201: error: expected initializer before ?__THROW?
/usr/include/bits/sched.h:203: error: ?__END_DECLS? does not name a type
In file included from /usr/include/pthread.h:25,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/sched.h:47: error: expected initializer before ?__THROW?
/usr/include/sched.h:51: error: expected initializer before ?__THROW?
/usr/include/sched.h:54: error: expected initializer before ?__THROW?
/usr/include/sched.h:57: error: expected initializer before ?__THROW?
/usr/include/sched.h:60: error: expected initializer before ?__THROW?
/usr/include/sched.h:63: error: expected initializer before ?__THROW?
/usr/include/sched.h:66: error: expected initializer before ?__THROW?
/usr/include/sched.h:111: error: expected initializer before ?__THROW?
/usr/include/sched.h:115: error: expected initializer before ?__THROW?
In file included from /usr/include/pthread.h:29,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/c++/4.4/signal.h:46: error: expected constructor, destructor, or type conversion before ?typedef?
In file included from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr-default.h:41,
                 from /usr/include/c++/4.4/i486-linux-gnu/bits/gthr.h:162,
                 from /usr/include/c++/4.4/ext/atomicity.h:34,
                 from /usr/include/c++/4.4/bits/ios_base.h:41,
                 from /usr/include/c++/4.4/ios:43,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/aras/Pulpit/FTP Sender/FTP Sender/main.cpp:1:
/usr/include/pthread.h:227: error: expected constructor, destructor, or type conversion before ?extern?
/usr/include/pthread.h:249: error: expected initializer before ?__THROW?
/usr/include/pthread.h:265: error: expected initializer before ?__THROW?
Process terminated with status 1 (0 minutes, 2 seconds)
50 errors, 0 warnings
 
Już naprawiłem :D okazało się ze moja siostrzenica musiała grzebać w plikach bo w

Kod: Zaznacz cały

/usr/include/c++/4.4
były pliki które nie były elementami paczek c++ wiec nie były usuwane a jeżeli folder nie zostanie wyczyszczony do zera nie może być skasowany wiec de instalacja nie była możliwa a synaptic nie poinformował o takim fakcie wystarczyło ręcznie skasować cały folder c++
Bynajmniej ja tak sądzę
Dzięki mikolajs
Awatar użytkownika
Hauleth
Wytworny Kaczor
Wytworny Kaczor
Posty: 382
Rejestracja: 18 sie 2008, 17:43
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: GNOME
Architektura: x86

Odp: C++ <iostream> powoduje błędy

Post autor: Hauleth »

To czemu dałeś jej do zabawy konto roota??
Jeśli problem rozwiązany dodaj na początku tematu [SOLVED].

Biblioteka do C++ - Bust Lib: http://code.google.com/p/bust/
Awatar użytkownika
kaczorexus
Piegowaty Guziec
Piegowaty Guziec
Posty: 18
Rejestracja: 12 maja 2009, 16:48
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: C++ <iostream> powoduje błędy

Post autor: kaczorexus »

w tym problem ze nie dałem :D sama wpadła na to jakie mam hasło :sad: już je dawno zmieniłem ale problemów zdążyła narobić :|
ODPOWIEDZ

Wróć do „Programowanie”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 5 gości