Author Topic: SOLVED:: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5  (Read 4082 times)

Offline uglybug

  • Single posting newcomer
  • *
  • Posts: 2
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 ???
« Last Edit: November 24, 2024, 01:11:21 am by uglybug »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7720
    • My Best Post
Re: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5
« Reply #1 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

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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline uglybug

  • Single posting newcomer
  • *
  • Posts: 2
Re: basic_string.tcc - ctype not declared in GCC c++ on RaspberryPi5 SOLVED
« Reply #2 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