User forums > Help

How do I get GCC to work with C::B?

<< < (2/3) > >>

stahta01:
If you give no real info; no one can help you.
Learn to ask good questions.

What OS?
What Code::Blocks version?
What Compiler? What Version of Compiler?
Etc.
What other GCC compilers are installed on your computers? Include Cygwin and all others!
Learn to read FAQs.
Learn how to troubleshoot problems.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.

SlpCtrl:
I get the same error when trying to compile a console project; when I just have a source file, it doesn't say or do anything. Gah this is fucking frustrating, as this is a fresh install of code::blocks. I've never had any trouble with code::blocks before, now I'm playing hell to get it to work out of the box.

stahta01:

--- Quote from: SlpCtrl on September 05, 2009, 09:02:59 pm ---I get the same error when trying to compile a console project; when I just have a source file, it doesn't say or do anything. Gah this is fucking frustrating, as this is a fresh install of code::blocks. I've never had any trouble with code::blocks before, now I'm playing hell to get it to work out of the box.

--- End quote ---

Yeah, it is almost as frustrating as reading posts like yours that give NO REAL INFORMATION NEEDED to help the poster.

Tim S.

SlpCtrl:

--- Quote from: stahta01 on September 06, 2009, 12:26:46 am ---
--- Quote from: SlpCtrl on September 05, 2009, 09:02:59 pm ---I get the same error when trying to compile a console project; when I just have a source file, it doesn't say or do anything. Gah this is fucking frustrating, as this is a fresh install of code::blocks. I've never had any trouble with code::blocks before, now I'm playing hell to get it to work out of the box.

--- End quote ---

Yeah, it is almost as frustrating as reading posts like yours that give NO REAL INFORMATION NEEDED to help the poster.

Tim S.

--- End quote ---

If I could only be as helpful as you're being  :roll:.

SlpCtrl:
Try this, this is what I did and it worked; I'm copying the fix directly from my thread:
 
I fixed it; what I did was I went to settings>compiler and debugger
 
selected the toolchain executables tab
 
By default (from a fresh install) the version available right now has the default folder for MinGW WRONG. It has C:/MinGW, but the actual folder where it's installed to is C:\Program Files\CodeBlocks\MinGW (for windows). I just did an auto-detect and it corrected the problem, and voila; I can now build and run.
 

Should correct your problem.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version