Author Topic: ||=== Build file: "no target" in "no project" (compiler: unknown) ===|  (Read 196 times)

Offline Bilal Shafique

  • Single posting newcomer
  • *
  • Posts: 2
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5710
    • My Best Post
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

1. Make sure you have an FORTRAN Compiler installed.

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

Tim S.
« Last Edit: April 21, 2017, 05:17:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Bilal Shafique

  • Single posting newcomer
  • *
  • Posts: 2
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.

Offline sodev

  • Multiple posting newcomer
  • *
  • Posts: 58
Create a project, dont just a single file.