User forums > Help
Problem with building
(1/1)
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:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
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:
--- 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)
--- End code ---
Crash report:
--- Code: ---
--- End code ---
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.
Navigation
[0] Message Index
Go to full version