News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

SOLVED:: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5

Started by uglybug, November 23, 2024, 10:21:57 PM

Previous topic - Next topic

uglybug

platform: raspberryPi5 gcc version 12.2.0 (Debian 12.2.0-14)
compiler: GCC c++
template: console application
program: hello world DEMO
Error location: basic_string.tcc Line#949
error Msg: '__ctype_' has not been declared
level: beginner
using a new Code::Blocks installation with the console template for the Demo/Example 'hello world.cpp' file.
during the build process the errors are occurring in the basic_string.tcc file.

i have not modified nor configured code::blocks since the installation.
if there is a library missing does someone know what it might be ???

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

uglybug

solved: 8 hours
in settings <TAB>, compiler <TAB>, search Directories <TAB>
/home/examples/libraries/fmt/include/fmt

was causing 'local.h' file to be accessed, which generated the __ctype errors.

changed to:
/home/examples/libraries/fmt/include

the program compiled & ran correctly afterwords.

the link that help me was on stackoverflow.com:
https://stackoverflow.com/questions/63291350/many-internal-std-library-compile-errors-when-trying-to-compile-on-msys2-mingw-w