Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
Code::Blocks not finding compiler on Windows 10
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Code::Blocks not finding compiler on Windows 10 (Read 11662 times)
cluelessnoob
Multiple posting newcomer
Posts: 18
Code::Blocks not finding compiler on Windows 10
«
on:
September 08, 2019, 10:15:13 pm »
I installed Code::Blocks on Windows 10 and am trying to use this compiler:
https://www.allegro.cc/forums/thread/617424
When I open Code::Blocks, I get a gcc compiler not found error. I followed these instructions:
https://www.bleepingcomputer.com/forums/t/641797/codeblocks-environment-error/
no help. I checked my environmental path and everything looks right. I opened a command window and typed "gcc" and got a "gcc: fatal error: no input files. GCC terminated" error, telling me the compiler is working. I am able to compile from the command line. Any ideas?
«
Last Edit: September 08, 2019, 10:41:07 pm by cluelessnoob
»
Logged
stahta01
Lives here!
Posts: 7582
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #1 on:
September 08, 2019, 10:47:58 pm »
What is the path to the GCC Compiler?
Did you configure Code::Blocks to use that path?
Remember C::B adds the bin folder so do not include it in the path!
Verify the tools use the same names as in Code::Blocks (Change the C::B setting to match your compiler)
Tim S.
«
Last Edit: September 08, 2019, 11:27:48 pm by stahta01
»
Logged
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
cluelessnoob
Multiple posting newcomer
Posts: 18
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #2 on:
September 09, 2019, 12:33:43 am »
Thanks for the help. I used the browse function [...] in the toolchains executables tab to browse to the mingw folder. I took screen shots of the settings in Code::Blocks and the path to the mingw folder in Windows but the files are too large to attach. Everything looks right to me.
Logged
stahta01
Lives here!
Posts: 7582
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #3 on:
September 09, 2019, 12:36:35 am »
If you refuse to answer questions, there is no way to help you.
Tim S.
Logged
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
cluelessnoob
Multiple posting newcomer
Posts: 18
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #4 on:
September 09, 2019, 01:16:30 am »
The path to the compiler is "C:\ MINGW\i686-8.1.0-posix-dwarf-rt-v6_rev\mingw32." The compiler is set as GNU GCC compiler.
Per these instructions:
https://www.bleepingcomputer.com/forums/t/641797/codeblocks-environment-error/
, under the settings tab, selecting the compiler option and looking under the toolchains tab, Code::Blocks should set the path to the compiler automatically. The autoconfigure function does not find the path. The attached file shows the settings in Code::Blocks. Also per the instructions, the path can be manually and I used the browse key to set the path. Attached is a screenshot. Is there another way to set the compiler other than under the toolchains executables tab?
«
Last Edit: September 09, 2019, 01:18:18 am by cluelessnoob
»
Logged
stahta01
Lives here!
Posts: 7582
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #5 on:
September 09, 2019, 01:17:47 am »
What are the filenames for the C and C++ compilers?
Tim S.
Logged
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
cluelessnoob
Multiple posting newcomer
Posts: 18
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #6 on:
September 09, 2019, 01:31:33 am »
I see what you are saying. I went into the bin folder under the mingw32 directory and manually selected the proper files. Attached is a screenshot with the corrected settings, for future generations. Thanks.
«
Last Edit: September 09, 2019, 01:34:00 am by cluelessnoob
»
Logged
stahta01
Lives here!
Posts: 7582
Re: Code::Blocks not finding compiler on Windows 10
«
Reply #7 on:
September 09, 2019, 02:36:13 am »
So, you changed your mind about what compiler you are going to use.
Tim S.
Logged
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
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
Code::Blocks not finding compiler on Windows 10