Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Jumach on March 19, 2010, 04:39:21 am
-
I'm trying to program for Irrlicht and Code Blocks was working for me for about 5 days before I started randomly having the same problem. It appeared out of the blue. Build and run worked just fine and then the next time it stopped. I can run the example cbp files that come with irrlicht but if I make ANY changes the program will tell that I need to build the ask me if I want to build the program after I press the Build and Run button but before the program executes. I get this:
-------------- Build: Windows in Irrlicht Example 01 Hello World ---------------
Linking console executable: ..\..\bin\Win32-gcc\HelloWorld.exe
/mingw/lib/libstdc++.a: file not recognized: Not enough space
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
-
version? os? gcc?
-
Not enough space
Wild guess is the Hard Drive full?
Tim S.
-
i'm using windows and I installed using the mingw installer. Like i said, though, no problems until recently. I've re-installed 4 times now and I get the following errors when I try to build and run the default Hello World program:
-------------- Build: Debug in test4 ---------------
Linking console executable: bin\Debug\test4.exe
obj\Debug\main.o: In function `_ZSt17__verify_groupingPKcjRKSs':
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2498: undefined reference to `std::string::size() const'
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2507: undefined reference to `std::string::operator[](unsigned int) const'
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2509: undefined reference to `std::string::operator[](unsigned int) const'
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.tcc:2512: undefined reference to `std::string::operator[](unsigned int) const'
obj\Debug\main.o: In function `main':
C:/practice/test4/main.cpp:7: undefined reference to `std::cout'
C:/practice/test4/main.cpp:7: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
C:/practice/test4/main.cpp:7: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
C:/practice/test4/main.cpp:7: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
obj\Debug\main.o: In function `_Z41__static_initialization_and_destruction_0ii':
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:77: undefined reference to `std::ios_base::Init::Init()'
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:77: undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
10 errors, 0 warnings
There is also an error in a file called "locale_facets.tcc":
Line 2498 const size_t __n = __grouping_tmp.size() - 1;
It doesn't like this line and I have no idea why I'm having so many problems when nothing has changed.
-
ok, see here: 2.14 Q: How do I troubleshoot an compiler problem? (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F)
Please try a "nightly build version of Codeblocks" and more recent GCC.
see here:Nightly builds (http://forums.codeblocks.org/index.php/board,20.0.html)
and here:TDM's GCC/mingw32 Builds (http://www.tdragon.net/recentgcc/)
-
My first suspicion would be that your MinGW install has become corrupt. That "locale_facets.tcc" file is an include file used internally by the compiler. Or, perhaps, you changed something else on your computer, such as default language (from English to French, for example), or print direction (from Western left-to-right to Arabic right-to-left for example).
Note: this is not a problem with C::B, but either your compiler or your environment. Has anything else stopped working? When you re-install C::B, are you deleting the old config files and starting with a "clean slate"?
Ringo