# Can't compile the code

**URL:** <https://fortran-lang.discourse.group/t/cant-compile-the-code/4310>\
**Category:** Visual Studio Code\
**Created:** [September 14, 2022, 12:59pm UTC](https://fortran-lang.discourse.group/t/cant-compile-the-code/4310 "2022-09-14T12:59:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorvz](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jorvz](https://fortran-lang.discourse.group/u/jorvz)\
**Post date:** [September 14, 2022, 12:59pm UTC](https://fortran-lang.discourse.group/t/cant-compile-the-code/4310/1 "2022-09-14T12:59:09Z")

</div>

Hey, i’m having problems to compile this code, i don’t really know the right commands to compile properly, the way i usually do it is “gfortran -o code.f90”. I think this code is quite old so new features were added but i don’t really know how to “translate” it to modern versions. If someone could help me on that, it would help me a lot.

[parC.txt](https://fortran-lang.discourse.group/uploads/short-url/h8TkGx9aBQ966QqzUCrukimeQQ5.txt) (956 Bytes)  
[CouetteAI.txt](https://fortran-lang.discourse.group/uploads/short-url/ybLUaubcS7Id43koZOmRV3zMyro.txt) (9.6 KB)

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [September 14, 2022, 1:09pm UTC](https://fortran-lang.discourse.group/t/cant-compile-the-code/4310/2 "2022-09-14T13:09:25Z")

</div>

What steps are you taking to compile the file?  
Also, you don’t really have to convert to Modern Fortran to get this to compile.

I was able to compile the program successfully with the following steps:

- rename: `parC.txt` → `ParC.inc`
- rename: `CouetteAI.txt` → `CouetteAI.F`
- `gfortran CouetteAI.F` compiles the files

---

<div class="post-metadata">

**Author:** ![jorvz](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jorvz](https://fortran-lang.discourse.group/u/jorvz)\
**Post date:** [September 14, 2022, 3:26pm UTC](https://fortran-lang.discourse.group/t/cant-compile-the-code/4310/3 "2022-09-14T15:26:53Z")

</div>

when i try do compile it shows me the warning “Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 100 at (1)”

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [September 14, 2022, 3:40pm UTC](https://fortran-lang.discourse.group/t/cant-compile-the-code/4310/4 "2022-09-14T15:40:19Z")

</div>

Yes that is correct. You will notice however that, that is a Warning, not an Error.
