Code::Blocks Forums

User forums => Help => Topic started by: nore on April 24, 2023, 03:23:11 am

Title: Right Click -- Open #include file results in 'Not found: <>' for many headers
Post by: nore on April 24, 2023, 03:23:11 am
Hi there,

I have been using codeblocks for about three months now and have been progressing quickly within the IDE. I have had little issues compiling and enjoy the IDE very much. However, during some experimentation today with wxWidgets I decided to go digging in some header files including <chrono> and <memory>, but the compiler quickly reported to me that these header files were not found. Now, this issue came up as rather strange to me because I have had no issues compiling programs with these header files over the past weeks; and I knew that codeblocks for whichever reason did not open these header files -- I figured more of the settings needed information. Anyway, I am using an external installation of MinGW and have tried pointing to the various folders at 'C:\mingw64\x86_64-w64-mingw32\include' but the IDE still cannot find the header files. I am in particular need of these files at the moment, and so help would be very much appreciated.
Title: Re: Right Click -- Open #include file results in 'Not found: <>' for many headers
Post by: nore on May 13, 2023, 05:08:20 pm
Does anyone know of a solution for this on Windows 11?
Title: Re: Right Click -- Open #include file results in 'Not found: <>' for many headers
Post by: stahta01 on May 13, 2023, 09:54:00 pm
https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
Title: Re: Right Click -- Open #include file results in 'Not found: <>' for many headers
Post by: cbuser1 on May 13, 2023, 10:29:54 pm
You might find those std files under
C:\mingw64\include\c++\13.1.0


Try setting your search directories to C:\mingw64\include or your toolchain executables to C:\mingw64

Maybe the reason you were able to compile is because gcc comes with builtin paths relative to the executable.
Title: Re: Right Click -- Open #include file results in 'Not found: <>' for many headers
Post by: nore on May 13, 2023, 11:04:31 pm
https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
You might find those std files under
C:\mingw64\include\c++\13.1.0


Try setting your search directories to C:\mingw64\include or your toolchain executables to C:\mingw64

Maybe the reason you were able to compile is because gcc comes with builtin paths relative to the executable.

These answers fixed the issue quite simply. I can now browse header files with ease. On a side note: what is the "bits" folder?