News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Problem with building

Started by parveln, June 19, 2013, 01:49:39 PM

Previous topic - Next topic

parveln

Hello, when I am trying to press build or build and run code blocks opens a new project called istream and it has about 20-30 errors. This started to happen after I pressed build and run on a project which had already been built. Now I cannot even build the simpliest programs and nothing works. I have windows 7 btw.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

parveln

I am running Code::Blocks version Code::BlocksVersionNumber on MyOperatingSystem
(version OperatingSystemVersionNumber). The compiler I use is GNU CC compiler
version No idea.

When I build istream appears with a bunch of errors
Steps to reproduce problem. Try to build any code.

Description of problem.
Istream opens and it doesn´t build.

Build log:

[ 50.0%] mingw32-g++.exe    -c C:\Users\Parveln\Desktop\Code\apa.cpp -o C:\Users\Parveln\Desktop\Code\apa.o
In file included from c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:41:0,
                 from C:\Users\Parveln\Desktop\Code\apa.cpp:1:
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:579:2: error: invalid preprocessing directive #end
In file included from c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:41:0,
                 from C:\Users\Parveln\Desktop\Code\apa.cpp:1:
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:2:8: error: expected unqualified-id before '/' token
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:2:8: error: expected constructor, destructor, or type conversion before '/' token
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:17:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:44:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:55:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:78:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:88:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:117:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:128:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:152:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:155:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:158:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:169:7: error: 'int_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:187:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:206:7: error: 'streamsize' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:223:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:239:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:272:7: error: 'pos_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:287:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:303:7: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:307:5: error: expected unqualified-id before 'protected'
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:313:2: error: '__istream_type' does not name a type
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/istream:315:5: error: expected declaration before '}' token
Process terminated with status 1 (0 minutes, 0 seconds)
24 errors, 0 warnings (0 minutes, 0 seconds)




Crash report:





I have already tried: auto detecting in toolchain executables.
List of attempted solutions.
auto detecting in toolchain executables but none of them worked.

jarod42

Seem to me you have "corrupted" istream header.
this should end with #endif and not #end.