I used to use dev c++ but now I decided to switch over to codeblocks. dev c++ worked normally but when I try to build on codeblocks nothing happens. I typed out some code compiled it and build it but when I tried to run it a message popped up saying I haven't build it yet and if I would like to build it now. when I clicked yes nothing happend and when I clicked no it would run but not work normally. some youtube videos recommended going to settings then compiler, selecting GNU GCC compiler, going to Toolchain executables and cliicking auto detect. in my case when I clicked auto detect a message saying could not auto-detect installation path of "GNU GCC Compiler". what should I do to fix these errors
Asked
Active
Viewed 47 times
-1
-
Do you have GCC installed? If yes, give CB the path manually. If not, [read this installation guide](https://stackoverflow.com/q/30069830/2752075). – HolyBlackCat Aug 21 '21 at 09:20
-
@HolyBlackCat no I don't Ill read it. – giorgigiorgi Aug 21 '21 at 09:22
-
Ok. It might still not auto-detect after the installation, which is ok. You can specify the path manually. – HolyBlackCat Aug 21 '21 at 09:23
1 Answers
0
install GCC
then add its path to environment variable in path
then click auto-detect
again
if you're on windows
type
environment variables
in search box
clickenvironment variables
button in the dialog
inSystem Variables
group double-clickpath
(add one if missing)
clickNew
thenBrowse
buttons, naviagete toGCC
folder
clickOk
buttons to confirm, then back tocode::blocks
toauto-detect
or set the path to GCC
manually in Toolchain executables
tab

Errorist
- 224
- 2
- 6