User forums > Help

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

(1/1)

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:
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.

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



Navigation

[0] Message Index

Go to full version