Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: AZ on September 14, 2015, 08:15:31 am

Title: Build file: "no target"
Post by: AZ on September 14, 2015, 08:15:31 am
hello,
 getting
||=== Build file: "no target" in "no project" (compiler: unknown) ===|

when i open a file and "build" it.
i wonder why ?

wonder how to invoke the debugger. I thought setting a breakpoint and "build/run" will be sufficient to have it up. But this file "just runs " - builds and executes in the xterm.

Title: Re: Build file: "no target"
Post by: oBFusCATed on September 14, 2015, 08:28:14 am
Do you have a project? The debugger doesn't work without a project.
Also you have to use Debug->Start or Debug->Attach.
Title: Re: Build file: "no target"
Post by: AZ on September 14, 2015, 08:35:53 am
> ..Do you have a project? The debugger doesn't work without a project.
uhh. that answers the question.
No i don't have a project, just wonted to compile and debug a single file.
Is there a way to accomplish this without creating a project?
Title: Re: Build file: "no target"
Post by: oBFusCATed on September 14, 2015, 08:45:25 am
Nope.
Title: Re: Build file: "no target"
Post by: AZ on September 14, 2015, 09:14:32 am
thank you .