can't run my project(c::b) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can't run my project(c::b)

When I want to run my project in Code::Blocks, it write 'Target uses an invalid compiler; run aborted' I downloaded 'codeblocks-16.01mingw-setup.exe' and tried to use 'GNU GCC compiler' And when I change compiler settings, I see a message 'Encironment error Can't find compiler in your configured search path's for GNU GCC Compiler' P.S. My english is bad, i amn't from USA or UK or other country where speak english very good

6th Feb 2017, 4:45 AM
shrike
shrike - avatar
1 Answer
+ 1
I don't use the Code::Blocks IDE, but you can use the own GCC, download TDM GCC, install its, and after you can use it in the windows cmd, like in the Linux GCC. Open the folder with the g++.exe and click Shift+Right Mouse Buttom, open prompt here, and compiles the code writing something like this: g++ myCode.cpp -o myCode.exe this only works if the archive .cpp of your code is in the same path as g++, but you can enter the complete path of your code and will works example: g++ "C:\Users\jvict\Downloads\myCode.cpp" -o "C:\Users\jvict\Downloads\myCode.exe" Or, download DevC++, have less problems than Code::Blocks, in my opinion.
6th Feb 2017, 4:54 AM
João Victor Oliveira Couto
João Victor Oliveira Couto - avatar