Ciao
ho fatto un programma in C++, fino a qualche giorno fa andava. Poi ho reinstallato Linux per alcuni problemi (guarda un po causati da windows...) e adesso riprovando a compilare i sorgenti ottengo un sacco di errori, tipo:
codice:
ditta.cpp: In function `int main()':
ditta.cpp:113: parse error before `{' token
ditta.cpp: At global scope:
ditta.cpp:119: parse error before `if'
ditta.cpp:122: ISO C++ forbids declaration of `exit' with no type
ditta.cpp:122: `int exit' redeclared as different kind of symbol
/usr/include/stdlib.h:610: previous declaration of `void exit(int)'
ditta.cpp:123: parse error before `}' token
ditta.cpp:127: parse error before `;' token
ditta.cpp:127: syntax error before `++' token
ditta.cpp:130: syntax error before `.' token
ditta.cpp:131: syntax error before `.' token
ditta.cpp:132: syntax error before `.' token
ditta.cpp:133: syntax error before `.' token
ditta.cpp:137: redefinition of `int exit'
ditta.cpp:122: `int exit' previously defined here
ditta.cpp:139: syntax error before `.' token
ditta.cpp:144: syntax error before `++' token
ditta.cpp:147: parse error before `;' token
ditta.cpp:147: syntax error before `++' token
ditta.cpp:151: syntax error before `.' token
ditta.cpp:153: parse error before `for'
ditta.cpp:153: parse error before `;' token
ditta.cpp:153: syntax error before `++' token
ditta.cpp:157: syntax error before `.' token
ditta.cpp:158: syntax error before `.' token
ditta.cpp:159: syntax error before `.' token
ditta.cpp:160: syntax error before `.' token
ditta.cpp:163: syntax error before `.' token
ditta.cpp:165: parse error before `for'
ditta.cpp:165: parse error before `)' token
ditta.cpp:165: syntax error before `++' token
ditta.cpp:173: parse error before `;' token
ditta.cpp:173: syntax error before `++' token
ditta.cpp:177: syntax error before `.' token
ditta.cpp:178: redefinition of `int ran'
ditta.cpp:152: `int ran' previously defined here
ditta.cpp:179: parse error before `for'
ditta.cpp:179: parse error before `;' token
ditta.cpp:179: syntax error before `++' token
ditta.cpp:184: syntax error before `.' token
ditta.cpp:185: syntax error before `.' token
ditta.cpp:186: syntax error before `.' token
ditta.cpp:187: syntax error before `.' token
ditta.cpp:190: syntax error before `.' token
ditta.cpp:191: redefinition of `int count'
ditta.cpp:164: `int count' previously defined here
ditta.cpp:192: parse error before `for'
ditta.cpp:192: parse error before `)' token
ditta.cpp:192: syntax error before `++' token
ditta.cpp:198: syntax error before `.' token
ditta.cpp:199: parse error before `;' token
ditta.cpp:199: syntax error before `++' token
ditta.cpp:203: ISO C++ forbids declaration of `tableRow' with no type
ditta.cpp:203: new declaration `int tableRow()'
ditta.cpp:99: ambiguates old declaration `void tableRow()'
ditta.cpp:204: ISO C++ forbids declaration of `tableHead' with no type
ditta.cpp:204: new declaration `int tableHead()'
ditta.cpp:100: ambiguates old declaration `void tableHead()'
ditta.cpp:205: ISO C++ forbids declaration of `tableRow' with no type
ditta.cpp:206: syntax error before `.' token
ditta.cpp:207: syntax error before `.' token
ditta.cpp:208: parse error before `;' token
ditta.cpp:208: syntax error before `++' token
ditta.cpp:210: ISO C++ forbids declaration of `tableRow' with no type
ditta.cpp:211: syntax error before `<<' token
ditta.cpp:211: syntax error before `.' token
ditta.cpp:211: syntax error before `<<' token
ditta.cpp:212: ISO C++ forbids declaration of `exit' with no type
ditta.cpp:212: redefinition of `int exit'
ditta.cpp:137: `int exit' previously defined here
ditta.cpp:213: ISO C++ forbids declaration of `pauseSec' with no type
ditta.cpp:214: parse error before `}' token
ditta.cpp:216: syntax error before `.' token
ditta.cpp:217: parse error before `;' token
ditta.cpp:217: syntax error before `++' token
ditta.cpp:219: ISO C++ forbids declaration of `fclose' with no type
ditta.cpp:219: `int fclose' redeclared as different kind of symbol
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/stdio.h:209: previous
   declaration of `int fclose(FILE*)'
ditta.cpp:219: invalid conversion from `FILE*' to `int'
ditta.cpp:220: parse error before `return'
ditta.cpp: In function `void tableHead()':
ditta.cpp:234: new declaration `void tableHead()'
ditta.cpp:204: ambiguates old declaration `int tableHead()'
ditta.cpp: In function `void tableRow()':
ditta.cpp:239: new declaration `void tableRow()'
ditta.cpp:210: ambiguates old declaration `int tableRow()'
la cosa e' notevole...
non riesco a capire perche', dato che prima funzionava tutto.

Che manchi qualche libreria?
Strano, uso quelle del c++ standard piu' una fatta da me...

cosa puo' essere?
grazie
ciao