<p>
        Hi Jennifer,
</p>
<p>
        This is the makefile for g2clib:
</p>
<p>
        <br>
</p>
<p>
        SHELL=/bin/sh
</p>
<p>
        #  If you want to enable support for PNG or JPEG2000 encoding/decoding,<br>
#  you must specify -DUSE_PNG and/or -DUSE_JPEG2000 in the DEFS variable<br>
#  for the C pre-processor<br>
#  -DUSE_PNG requires libpng.a and libz.a<br>
#                     ( and png.h pngconf.h zconf.h zlib.h include files).<br>
#  -DUSE_JPEG2000 requires libjasper.a<br>
#                     ( and all the jasper/*.h include files).<br>
#<br>
#  In addition, INC must include all directories where the above<br>
#  mentioned include files can be found.<br>
DEFS=-DUSE_PNG
</p>
<p>
        #<br>
# Please make sure to include all idirectories where include files  <br>
#     can be found (jasper/*.h and png.h pngconf.h zconf.h zlib.h)<br>
#
</p>
<p>
        INC=-I$SUPPLIBS/include -I$SUPPLIBS/include/libpng15
</p>
<p>
        #<br>
#   This "C" source code contains many uses of the C++<br>
#   comment style "//".  Please make sure you include the<br>
#   appropriate compiler flag to allow the use of "//" comment indicators.<br>
#
</p>
<p>
        CFLAGS= -O3 -g -fPIC -m64 $(INC) $(DEFS) -D__64BIT__
</p>
<p>
        "makefile" 92L, 2241C                                                     13,1          Top
</p>
<br>
<br>
<blockquote class="ReferenceQuote" style="padding-left:5px;margin-right:0px;margin-left:5px;border-left-color:#B6B6B6;border-left-width:2px;border-left-style:solid;" name="replyContent">
        -----原始邮件-----<br>
<b>发件人:</b><span id="rc_from">"Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC]" <jennifer.m.adams@nasa.gov></span><br>
<b>发送时间:</b><span id="rc_senttime">2019-10-09 03:09:09 (星期三)</span><br>
<b>收件人:</b> "GrADS Users Forum" <gradsusr@gradsusr.org><br>
<b>抄送:</b> <br>
<b>主题:</b> Re: [gradsusr] [EXTERNAL] Error reported in the grads installation<br>
<br>
<style></style>
        <div class="WordSection1">
                <p class="MsoNormal">
                        What does your makefile for g2clib look like? <o:p></o:p>
                </p>
                <p class="MsoNormal">
                        <o:p> </o:p>
                </p>
                <div>
                        <p class="MsoNormal">
                                <span style="font-size:10pt;">-- <span style="color:black;"><br>
Jennifer Miletta Adams<br>
ADNET Systems, Inc.<br>
NASA/GSFC, Code 610.2</span><o:p></o:p></span>
                        </p>
                        <div>
                                <p class="MsoNormal">
                                        <span style="color:black;font-size:10pt;">Building 32, Room S159<br>
(301) 614-6070<o:p></o:p></span>
                                </p>
                        </div>
                </div>
                <p class="MsoNormal">
                        <o:p> </o:p>
                </p>
                <p class="MsoNormal">
                        <o:p> </o:p>
                </p>
                <div style="border-width:1pt medium medium;border-style:solid none none;border-color:#B5C4DF currentColor currentColor;padding:3pt 0in 0in;border-image:none;">
                        <p class="MsoNormal">
                                <b><span style="color:black;font-size:12pt;">From: </span></b><span style="color:black;font-size:12pt;">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of </span><span style="color:black;font-family:"MS Gothic";font-size:12pt;">王佳</span><span style="color:black;font-family:MingLiU;font-size:12pt;">钰</span><span style="color:black;font-size:12pt;"> <wjy_jenifer@mail.dlut.edu.cn><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Sunday, October 6, 2019 at 8:58 PM<br>
<b>To: </b>"gradsusr@gradsusr.org" <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] [gradsusr] Error reported in the grads installation<o:p></o:p></span>
                        </p>
                </div>
                <div>
                        <p class="MsoNormal">
                                <o:p> </o:p>
                        </p>
                </div>
                <p>
                        Dear all,<br>
I have installed g2clib successfully. But when I finished installing all the libraries and finally installed the grads, an error occurred as below:<br>
<br>
gcc   -fPIC -rdynamic  -L/public/home/jwchen/wjy/Build_WRF/grads/supplibs/lib  -o grads grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o gxstrm.o gxdb.o gxwmap.o gxshad.o gxshad2.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o gamach.o gatxt.o galloc.o gaddes.o gacfg.o
 gaio.o gauser.o gasdf.o bufrstn.o gabufr.o gabufrtbl.o   -L/public/home/jwchen/wjy/Build_WRF/grads/supplibs/lib     -lreadline -lncurses -lgrib2c -ljasper -lpng15 -lz -lmfhdf -ldf -ljpeg -lz -ludunits   -ltiff -lgeotiff -lshp   -ldl  -lm  <br>
/public/home/jwchen/wjy/Build_WRF/grads/supplibs/lib/libgrib2c.a(jpcunpack.o): In function `jpcunpack':<br>
/public/home/jwchen/wjy/Build_WRF/grads/supplibs/src/g2clib-1.6.0/jpcunpack.c:61: undefined reference to `dec_jpeg2000'<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [grads] Error 1<br>
make[1]: Leaving directory `/public/home/jwchen/wjy/Build_WRF/grads-2.2.1/src'<br>
make: *** [install-recursive] Error 1 <o:p></o:p>
                </p>
                <p>
                        Does anyone know how to solve this problem?<br>
Thank you so much!<br>
Jiayu <o:p></o:p>
                </p>
        </div>
</blockquote>