Author Topic: Code::blocks won't build  (Read 273 times)

Offline Grubby

  • Single posting newcomer
  • *
  • Posts: 1
Code::blocks won't build
« 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 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

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1540
Re: Code::blocks won't build
« Reply #1 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...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10356
Re: Code::blocks won't build
« Reply #2 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.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]