Code::Blocks Forums

User forums => Help => Topic started by: lllf on September 27, 2008, 02:35:13 pm

Title: locale.h not found => can't build
Post by: lllf 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

Title: Re: locale.h not found => can't build
Post by: TDragon 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.
Title: Re: locale.h not found => can't build
Post by: lllf 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.