Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Bilal Shafique on April 21, 2017, 03:36:03 pm

Title: ||=== Build file: "no target" in "no project" (compiler: unknown) ===|
Post by: Bilal Shafique on April 21, 2017, 03:36:03 pm
Hi all,

I am new to Code Blocks but not to FORTRAN. I am writing a CODE in FORTRAN but when I press Build and Run button, it gives the following error;

||=== Build file: "no target" in "no project" (compiler: unknown) ===|

Please help me out.

Thank you all in anticipation.
Title: Re: ||=== Build file: "no target" in "no project" (compiler: unknown) ===|
Post by: stahta01 on April 21, 2017, 05:08:11 pm
Please read http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

1. Make sure you have an FORTRAN Compiler installed.

Edit: Code::Blocks is an IDE/Editor; it is NOT a Compiler

Tim S.
Title: Re: ||=== Build file: "no target" in "no project" (compiler: unknown) ===|
Post by: Bilal Shafique on April 21, 2017, 06:46:13 pm
Thanks for your response.

I have already set the GNU Fortran Compiler in Settings > Compiler but when I write a FORTRAN program and try to build and run it, it gives the error "no target" in "no project" (compiler: unknown).

I am not getting where is the error.

Looking for tips to tackle this.

Thanks again.
Title: Re: ||=== Build file: "no target" in "no project" (compiler: unknown) ===|
Post by: sodev on April 21, 2017, 07:05:06 pm
Create a project, dont just a single file.