Author Topic: Massive Code Blocks problem!!!  (Read 6583 times)

Offline Jumach

  • Single posting newcomer
  • *
  • Posts: 2
Massive Code Blocks problem!!!
« 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
 

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Massive Code Blocks problem!!!
« Reply #1 on: March 19, 2010, 05:37:37 am »
version? os? gcc?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7786
    • My Best Post
Re: Massive Code Blocks problem!!!
« Reply #2 on: March 19, 2010, 05:46:25 am »
Not enough space

Wild guess is the Hard Drive full?

Tim S.
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 Jumach

  • Single posting newcomer
  • *
  • Posts: 2
Re: Massive Code Blocks problem!!!
« Reply #3 on: March 19, 2010, 06:06:10 am »
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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Massive Code Blocks problem!!!
« Reply #4 on: March 19, 2010, 06:17:08 am »
ok, see here: 2.14 Q: How do I troubleshoot an compiler problem?

Please try a "nightly build version of Codeblocks" and more recent GCC.

see here:Nightly builds
and here:TDM's GCC/mingw32 Builds
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Massive Code Blocks problem!!!
« Reply #5 on: March 19, 2010, 08:05:43 am »
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