Author Topic: Won't compile  (Read 8535 times)

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Won't compile
« on: December 28, 2010, 04:31:38 pm »
 Hi Guys,

Following yet another machine rebuild I get this error with the latest SVNs I've tried:

c:\utilities\programming\tdmmingw32\bin\..\lib\gcc\mingw32\4.5.1\include\c++\string|40|fatal error: bits/c++config.h: No such file or directory|

at

#include <bits/c++config.h>

in the source file "string".

Versions up to about 6 or 8 weeks ago were fine.
I have TDM MinGW32 installed. Seems like a pathing problem but I can't find it. Any ideas?

Thanks.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Won't compile
« Reply #1 on: December 28, 2010, 07:55:30 pm »
Verify that the right MinGW is being called.
Verify that the no other MinGW is in x:\MinGW where X is any drive letter.
Verify that no other MinGW/MSys/Cygwin is in the system path.

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 TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Won't compile
« Reply #2 on: December 29, 2010, 02:51:15 am »
First, make sure that "c:\utilities\programming\tdmmingw32\lib\gcc\mingw32\4.5.1\include\c++\mingw32\bits\c++config.h" exists. If it doesn't, your installation is botched and you should reinstall.

If it does exist, please add "-v" (for verbosity) to your compiler options, then post the output, starting with the command itself that causes the error (which you omitted in your first post), including all verbose output, and ending with the error message.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: Won't compile
« Reply #3 on: December 29, 2010, 03:04:09 am »

 Thanks for that. Re-installing several times hadn't fixed things but removing it and then re-installing seems to have sorted it.

Cheers.