Author Topic: Problem with building  (Read 7264 times)

Offline parveln

  • Single posting newcomer
  • *
  • Posts: 2
Problem with building
« on: June 19, 2013, 01:49:39 pm »
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline parveln

  • Single posting newcomer
  • *
  • Posts: 2
Re: Problem with building
« Reply #2 on: June 19, 2013, 02:19:43 pm »
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:
Code
[ 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:
Code


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

Offline jarod42

  • Multiple posting newcomer
  • *
  • Posts: 87
Re: Problem with building
« Reply #3 on: June 19, 2013, 03:15:47 pm »
Seem to me you have "corrupted" istream header.
this should end with #endif and not #end.