Author Topic: locale.h not found => can't build  (Read 10351 times)

Offline lllf

  • Single posting newcomer
  • *
  • Posts: 6
locale.h not found => can't build
« on: September 27, 2008, 02:35:13 pm »
Hallo!

I'm having problems compiling my main.cpp for a simple hello world program.

Here's the build log:

-------------- Build: Debug in hello ---------------

mingw32-g++.exe -Wall -fexceptions  -g     -c "D:\Daten\ulf\Eigene Dateien\C++\Tests\Hello\hello\main.cpp" -o obj\Debug\main.o
In file included from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:41,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:46,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:44,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
                 from D:\Daten\ulf\Eigene Dateien\C++\Tests\Hello\hello\main.cpp:1:
C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/clocale:49:20: locale.h: No such file or directory
In file included from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:41,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:46,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:44,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
                 from C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
                 from D:\Daten\ulf\Eigene Dateien\C++\Tests\Hello\hello\main.cpp:1:
C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/clocale:57: error: `::lconv' has not been declared
C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/clocale:58: error: `::setlocale' has not been declared
C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/clocale:59: error: `::localeconv' has not been declared


[and a lot more undeclared things and files not found]

I searched for locale.h and it doesn't exist indeed. I just don't know why. Obviously I missed to install something...?

I'm using (or am trying to use) the nightly build from Sept-21-2008 (5208) and minGW3.4.5.

Another thing: I didn't turn on the "produce debugging symbols (-g)" option anywhere. However it comes up in the build log. Any idea why this is so?

Thanks in advance.


lllf

C::B NB 2008-09-21 (5203)
MinGW 3.4.5
WinXP

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: locale.h not found => can't build
« Reply #1 on: September 27, 2008, 03:50:37 pm »
I searched for locale.h and it doesn't exist indeed. I just don't know why. Obviously I missed to install something...?
locale.h is in the mingw-runtime (mingwrt) package.
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 lllf

  • Single posting newcomer
  • *
  • Posts: 6
Re: locale.h not found => can't build
« Reply #2 on: September 27, 2008, 06:32:07 pm »
Thank you!

I thought I had it but I had downloaded and installed the mingwrt-3.15-mingw32-dll.tar.gz only.

Thanks again.
C::B NB 2008-09-21 (5203)
MinGW 3.4.5
WinXP