Code::Blocks Forums

User forums => Help => Topic started by: uglybug on November 23, 2024, 10:21:57 pm

Title: SOLVED:: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5
Post by: uglybug on November 23, 2024, 10:21:57 pm
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 ???
Title: Re: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5
Post by: stahta01 on November 24, 2024, 12:51:51 am
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Post a full re-build log in code tags will increase the chance of you being helped.

Tim S.
Title: Re: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5 SOLVED
Post by: uglybug on November 24, 2024, 01:02:18 am
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