<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Do you get this error with any petsc example – say src/ksp/ksp/examples /tutorials/ex2 ?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also, copy paste the complete output from make – when building example or your Test code.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Satish</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> petsc-users <petsc-users-bounces@mcs.anl.gov> on behalf of Choudhary, Devyani D via petsc-users <petsc-users@mcs.anl.gov><br>
<b>Sent:</b> Sunday, January 13, 2019 2:27:05 PM<br>
<b>To:</b> petsc-users<br>
<b>Subject:</b> Re: [petsc-users] C++ compilation error</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thank you for the response Satish, but I am still encountering the same issue.</p>
<p style="margin-top:0;margin-bottom:0">Following is my makefile:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><span style="font-family: "Lucida Console", Monaco, monospace; font-size: 9pt;">PETSC_DIR=/usr/local/pacerepov1/petsc/3.8.3/mvapich2-2.1/intel-15.0/opt/lib/petsc/</span></div>
<div><br>
</div>
<div><span style="font-family: "Lucida Console", Monaco, monospace; font-size: 9pt;">include ${PETSC_DIR}/conf/variables</span></div>
<div><span style="font-family: "Lucida Console", Monaco, monospace; font-size: 9pt;">include ${PETSC_DIR}/conf/rules</span></div>
<div><span style="font-family: "Lucida Console", Monaco, monospace; font-size: 9pt;">include ${PETSC_DIR}/conf/test</span></div>
<div><br>
</div>
<div><span style="font-size: 9pt; font-family: "Lucida Console", Monaco, monospace;">hello: hello.o  chkopts</span><br>
</div>
<div><span style="font-family: "Lucida Console", Monaco, monospace; font-size: 9pt;">        -${CLINKER} -o hello hello.o  ${PETSC_LIB}</span></div>
<div><span style="font-family: "Lucida Console", Monaco, monospace; font-size: 9pt;">        ${RM} hello.o</span></div>
<div><br>
</div>
<div>It is in the format of petsc examples. I am not sure why I am still getting the error.</div>
<div><br>
</div>
<div>Devyani</div>
<div><br>
</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Balay, Satish <balay@mcs.anl.gov><br>
<b>Sent:</b> Sunday, January 13, 2019 3:07:58 PM<br>
<b>To:</b> Choudhary, Devyani D<br>
<b>Cc:</b> petsc-users@mcs.anl.gov<br>
<b>Subject:</b> Re: [petsc-users] C++ compilation error</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Presumably PETSc is buit with intel compilers - but somehow gcc/g++ is<br>
getting used via your makefile.<br>
<br>
Do you get this error when you use PETSc example with a petsc<br>
makefile? Perhaps you need to format your makefile using petsc<br>
makefile format. For ex: check<br>
src/tao/leastsquares/examples/tutorials/makefile<br>
<br>
Satish<br>
<br>
On Sun, 13 Jan 2019, Choudhary, Devyani D via petsc-users wrote:<br>
<br>
> Hi,<br>
> <br>
> <br>
> I am trying to make a simple hello world script using a makefile that includes petsc, and am getting the error<br>
> <br>
> "g++: error: unrecognized command line option ‘-wd1572’"<br>
> <br>
> I am not sure how to fix it.<br>
> <br>
> Please let me know if you have some ideas on how to fix this.<br>
> <br>
> <br>
> Thank you<br>
> <br>
</div>
</span></font></div>
</div>
</body>
</html>