Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: lime-n on May 16, 2021, 09:34:33 pm

Title: How to get compiler to build current script
Post by: lime-n on May 16, 2021, 09:34:33 pm
Whenever I am trying to build on my current script, the IDE returns to a previous script of mine that hasn't been built effectively which would have me focus on fixing this.

Is there a way to only build the current script I am on? I have tried right-clicking Fortran script and clicking on properties -> build -> (untick) compile the file. While this works, I get the error:

> ||gfortran.exe: error:  obj\Debug\test1.o : No such file or directory|

I have checked this directory and it's true that the file does not exist there, however, It has nothing to do with the current script I am working on. It seems to be an issue with one of the files I unticked compile file for.

Is there a better way around this?
Title: Re: How to get compiler to build current script
Post by: oBFusCATed on May 17, 2021, 01:01:21 am
Are you calling fortran source files - "scripts"?
They are not scripts and most of the time they are not self sufficient, most of the times you need a project.