Code::Blocks Forums

User forums => Help => Topic started by: Grubby on October 19, 2017, 04:06:07 pm

Title: Code::blocks won't build
Post by: Grubby on October 19, 2017, 04:06:07 pm
Whenever i try to compile any code i get the message "No such file or directory", while the "File" column in the build messages has the directory to the file i was trying to build. The source file is created, though can only be opened with CB. When i try to open it with Dev an error pops out saying that the file can not be found. I reinstalled CB a couple of times, different versions, with and without an antivirus, i installed a new compiler using this guide http://http://forums.codeblocks.org/index.php?topic=21570.0 (http://http://forums.codeblocks.org/index.php?topic=21570.0) but it didn't help either, and honestly i am starting to loose hope. Nothing i find on forum or on the other sites works

I use code::blocks version 13.12 on windows 10 (64bit). The compiler i installed was TDM-GCC 5.1.0-3
Title: Re: Code::blocks won't build
Post by: BlueHazzard on October 20, 2017, 11:03:03 am
use a never version of codeblocks... 13.12 is more then 3 years old... I would recommend a nightly build...

For your compiling error:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Quote
. I reinstalled CB a couple of times, different versions, with and without an antivirus, i installed a new compiler using this guide http://http://forums.codeblocks.org/index.php?topic=21570.0 but it didn't help either, and honestly i am starting to loose hope. Nothing i find on forum or on the other sites works
Reinstalling because of compiler error is bullshit... Your source file seems to be broken, but post first a rebuild log...
Title: Re: Code::blocks won't build
Post by: oBFusCATed on October 20, 2017, 07:57:58 pm
I use code::blocks version 13.12 on windows 10 (64bit). The compiler i installed was TDM-GCC 5.1.0-3
C::B uses regular expressions to find the file and the line in the output of the compiler.
Newer versions of GCC produce slightly different output, so they require modifications to the regular expressions.