<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear WRF-chem users,</div>

<div>&nbsp;</div>

<div>I&#39;m trying to compile &quot;PREP-CHEM-SRC-1.4/bin/build&quot; for</div>

<div>Global emission input data preparation (see http://ruc.noaa.gov/wrf/wrf-chem_tutorial_emissions_v35/exercise_1.html)</div>

<div>I followed all steps described in Global emissions exercise 1 and in README from /PREP-CHEM-SRC-1.4/ directory.</div>

<div>I specially installed separately from WRF netcdf-4.4.1.1, zlib-1.2.10 &amp;hdf5-1.10.0 programs (inside Global emissions directory).</div>

<div>Here is my &#39;include.mk.gfortran&#39; file for gfortran (Ubuntu) compilation:</div>

<div>-------------------------------------------</div>

<div>
<div># NETCDF libraries</div>

<div>NETCDF=/home/user_pc/WRFV3_Chem-3.7/netcdf-4.4.1.1<br/>
NETCDF_INC=-I&#36;(NETCDF)/include<br/>
NETCDF_LIBS=-L&#36;(NETCDF)/lib -lnetcdf</div>

<div># HDF libraries</div>

<div>HDF5=/home/user_pc/WRFV3_Chem-3.7/hdf5-1.10.0<br/>
HDF5_INC=-I&#36;(HDF5)/include<br/>
HDF5_LIB=-L&#36;(HDF5)/lib -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -L/home/user_pc/WRFV3_Chem-3.7/zlib-1.2.10/lib -lz<br/>
&nbsp;&nbsp; &nbsp;</div>

<div># Machine-dependent options.</div>

<div>#-----------------&nbsp; LINUX Portland Group pgf77/gcc ---------------<br/>
CMACH=PC_LINUX1<br/>
F_COMP=/usr/bin/gfortran<br/>
C_COMP=/usr/bin/gcc<br/>
LOADER=/usr/bin/gfortran<br/>
C_LOADER=/usr/bin/gcc<br/>
LIBS=<br/>
MOD_EXT=mod</div>

<div>F_OPTS=&nbsp; -Xpreprocessor -D&#36;(CHEM) -O2 -frecord-marker=4<br/>
C_OPTS= -O2 #-DUNDERSCORE -DLITTLE<br/>
LOADER_OPTS= -O2</div>

<div>--------------------------------------------------------------------------</div>

<div>&nbsp;</div>

<div>But while compiling I&#39;ve got a pile of undefined references regarding NETCDF files for VOLC, GOCART &amp; MEGAN emissions:</div>

<div>---------------------------------------------------------------------------</div>

<div>
<div>volc_degassing_emissions.o: In function &#96;__volc_degassing_emissions_MOD_get_emission_per_volcano&#39;:<br/>
volc_degassing_emissions.f90:(.text+0x1ca9): undefined reference to &#96;__netcdf_MOD_nf90_open&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1cd7): undefined reference to &#96;__netcdf_MOD_nf90_inq_varid&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1d13): undefined reference to &#96;__netcdf_MOD_nf90_get_var_1d_fourbyteint&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1e90): undefined reference to &#96;__netcdf_MOD_nf90_inq_varid&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1ecc): undefined reference to &#96;__netcdf_MOD_nf90_get_var_1d_fourbytereal&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1efa): undefined reference to &#96;__netcdf_MOD_nf90_inq_varid&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1f36): undefined reference to &#96;__netcdf_MOD_nf90_get_var_1d_fourbytereal&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1f64): undefined reference to &#96;__netcdf_MOD_nf90_inq_varid&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1fa0): undefined reference to &#96;__netcdf_MOD_nf90_get_var_1d_fourbytereal&#39;<br/>
volc_degassing_emissions.f90:(.text+0x1fce): undefined reference to &#96;__netcdf_MOD_nf90_inq_varid&#39;<br/>
volc_degassing_emissions.f90:(.text+0x200a): undefined reference to &#96;__netcdf_MOD_nf90_get_var_1d_fourbytereal&#39;<br/>
volc_degassing_emissions.f90:(.text+0x2038): undefined reference to &#96;__netcdf_MOD_nf90_inq_varid&#39;<br/>
volc_degassing_emissions.f90:(.text+0x2074): undefined reference to &#96;__netcdf_MOD_nf90_get_var_1d_fourbytereal&#39;<br/>
volc_degassing_emissions.o: In function &#96;__volc_degassing_emissions_MOD_get_dimension_per_file_volcano&#39;:</div>

<div>--------------------------------------------------------------------------</div>
</div>

<div>I didn&#39;t find any NETCDF files with&quot; _MOD_&quot; part in the name. (neither in include no in lib).</div>

<div>Maybe I need another version of NETCDF but the one I installed is the latest release?</div>

<div>Also there is no netcdf/lib in my netcdf directory but &#39;liblib, libsrc, libsrc4&#39; ... sub-directories.</div>

<div>&nbsp;</div>

<div>Any help is highly appreciable.</div>

<div>&nbsp;</div>

<div>Best regards,</div>

<div>Dr Michael Titov</div>

<div>&nbsp;</div>

<div>&nbsp;</div>
</div></div></body></html>