News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Right Click -- Open #include file results in 'Not found: <>' for many headers

Started by nore, April 24, 2023, 03:23:11 AM

Previous topic - Next topic

nore

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.

nore


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]

cbuser1

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.

nore

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

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