# MCIP make errpr

**URL:** <https://forum.cmascenter.org/t/mcip-make-errpr/1110>\
**Category:** MCIP\
**Created:** [November 7, 2019, 2:32pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110 "2019-11-07T14:32:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![peng](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@peng](https://forum.cmascenter.org/u/peng)\
**Post date:** [November 7, 2019, 2:32pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/1 "2019-11-07T14:32:16Z")

</div>

I was compiled ICON BCON and CCTM successfully with gfortran,but not MCIP ,any help will be appreciated

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/446ebc2a1207e1daaff7b4350d2e31a54bbbfb6e.png)

---

<div class="post-metadata">

**Author:** ![peng](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@peng](https://forum.cmascenter.org/u/peng)\
**Post date:** [November 7, 2019, 2:33pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/2 "2019-11-07T14:33:19Z")

</div>

![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/1c362372810295fb826f4d3e80d258d713eac5cb.png)  
this is the Makefile

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 7, 2019, 2:42pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/3 "2019-11-07T14:42:53Z")

</div>

Did you enable the “_f90_” netCDF interfaces? If so, somewhere under the netCDF installation there should be a file “_netcdf.mod_”. Supposing its directory is “_/foo/bar_” (to pick an off-the-wall example for its directory-name), then you need to have a directive “`-I/foo/bar`” in your compile-flags for MCIP.

---

<div class="post-metadata">

**Author:** ![peng](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@peng](https://forum.cmascenter.org/u/peng)\
**Post date:** [November 7, 2019, 2:56pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/4 "2019-11-07T14:56:27Z")

</div>

thanks for attention 。it can be found at (NETCDF)/include,anyway ,I uncommont it but run into anther problem:face\_with\_thermometer:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/46c4cae7651255028cb771e4a6be47345e7eaf11.png)

---

<div class="post-metadata">

**Author:** ![peng](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@peng](https://forum.cmascenter.org/u/peng)\
**Post date:** [November 7, 2019, 3:01pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/5 "2019-11-07T15:01:11Z")

</div>

it means " `undefined reference to` ‘main’

---

<div class="post-metadata">

**Author:** ![tlspero](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tlspero](https://forum.cmascenter.org/u/tlspero)\
**Post date:** [November 7, 2019, 3:39pm UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/6 "2019-11-07T15:39:18Z")

</div>

@peng –

It looks like you modified the MCIP Makefile to only compile the modules and not the rest of the source code. From your example, above, you are only compiling the Fortran 90 modules. Please compare your Makefile with the original version in the release to see if you inadvertently made this sort of change.

–Tanya

---

<div class="post-metadata">

**Author:** ![peng](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@peng](https://forum.cmascenter.org/u/peng)\
**Post date:** [November 8, 2019, 12:48am UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/7 "2019-11-08T00:48:24Z")

</div>

very thanks ,and I just found the NETCDF directory was wrong,and there is no need to uncomment anyline.  
now is work.  
To tell anyone who may have problem in MCIP ,the directory should be accurate

---

<div class="post-metadata">

**Author:** ![peng](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@peng](https://forum.cmascenter.org/u/peng)\
**Post date:** [November 8, 2019, 12:49am UTC](https://forum.cmascenter.org/t/mcip-make-errpr/1110/8 "2019-11-08T00:49:39Z")

</div>

thanks for attention ,I just make it through
