<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl' href='pmathml.xsl'?>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Know Bugs and Problems Using CppAD</title>
<meta name="description" id="description" content="Know Bugs and Problems Using CppAD"/>
<meta name="keywords" id="keywords" content=" bugs using Cppad problem gcc 3.4.4 bug "/>
<style type='text/css'>
body { color : black }
body { background-color : white }
A:link { color : blue }
A:visited { color : purple }
A:active { color : purple }
</style>
<script type='text/javascript' language='JavaScript' src='_bugs_xml.js'>
</script>
</head>
<body>
<table><tr>
<td>
<a href="http://www.coin-or.org/CppAD/" target="_top"><img border="0" src="_image.gif"/></a>
</td>
<td><a href="bib.xml" target="_top">Prev</a>
</td><td><a href="wishlist.xml" target="_top">Next</a>
</td><td>
<select onchange='choose_across0(this)'>
<option>Index-&gt;</option>
<option>contents</option>
<option>reference</option>
<option>index</option>
<option>search</option>
<option>external</option>
</select>
</td>
<td>
<select onchange='choose_up0(this)'>
<option>Up-&gt;</option>
<option>CppAD</option>
<option>Appendix</option>
<option>Bugs</option>
</select>
</td>
<td>
<select onchange='choose_down2(this)'>
<option>CppAD-&gt;</option>
<option>Install</option>
<option>Introduction</option>
<option>AD</option>
<option>ADFun</option>
<option>multi_thread</option>
<option>library</option>
<option>cppad_ipopt_nlp</option>
<option>Example</option>
<option>preprocessor</option>
<option>Appendix</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>Appendix-&gt;</option>
<option>Faq</option>
<option>speed</option>
<option>Theory</option>
<option>glossary</option>
<option>Bib</option>
<option>Bugs</option>
<option>WishList</option>
<option>whats_new</option>
<option>deprecated</option>
<option>License</option>
</select>
</td>
<td>Bugs</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>gcc 3.4.4 -O2</option>
<option>---..Example</option>
<option>---..Adolc</option>
</select>
</td>
</tr></table><br/>



<center><b><big><big>Know Bugs and Problems Using CppAD</big></big></b></center>
<br/>
<b><big><a name="gcc 3.4.4 -O2" id="gcc 3.4.4 -O2">gcc 3.4.4 -O2</a></big></b>


<br/>
There appears to be a problem with gcc version 3.4.4 
under Cygwin using the compiler option <code><font color="blue">-O2</font></code>.

<br/>
<br/>
<b><a name="gcc 3.4.4 -O2.Example" id="gcc 3.4.4 -O2.Example">Example</a></b>
<br/>
If you are running gcc 3.4.4, try using the 
<a href="installunix.xml#Configure" target="_top"><span style='white-space: nowrap'>configure</span></a>
 option
<code><font color='blue'><pre style='display:inline'> 
	CPP_ERROR_WARN=&quot;-O2 -Wall -ansi -pedantic-errors -std=c++98&quot;
</pre></font></code>

If the <code><font color="blue">-O2</font></code> compiler option is a problem for your compiler,
you will get warnings that do not make sense when executing the 
<code><font color="blue">make</font></code> command in the <code><font color="blue">Example</font></code> sub-directory.
In addition, the <code><font color="blue">example/Example</font></code> program will generate a
segmentation fault.

<br/>
<br/>
<b><a name="gcc 3.4.4 -O2.Adolc" id="gcc 3.4.4 -O2.Adolc">Adolc</a></b>
<br/>
If you are running gcc 3.4.4, try using the
<a href="installunix.xml#Configure" target="_top"><span style='white-space: nowrap'>configure</span></a>
 options
<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;./configure&#xA0;\<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;ADOLC_DIR=</span></font></code><i><span style='white-space: nowrap'>AdolcDir</span></i><code><font color="blue"><span style='white-space: nowrap'>&#xA0;\<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;CPP_ERROR_WARN=&quot;-Wall&quot;&#xA0;\<br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;BOOST_DIR=</span></font></code><i><span style='white-space: nowrap'>BoostDir</span></i><code><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>the following warning occurs during the <code><font color="blue">make</font></code> command: 
<code><font color='blue'><pre style='display:inline'> 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: 
warning: '__cur' might be used uninitialized in this function
</pre></font></code>

This appears to be the same problem discussed in 
<code><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></code>
<a href="http://www.cygwin.com/ml/cygwin-apps/2005-06/msg00159.html" target="_top"><span style='white-space: nowrap'>http://www.cygwin.com/ml/cygwin-apps/2005-06/msg00159.html</span></a>

<code><span style='white-space: nowrap'><br/>
</span></code>and its follow up messages.



<hr/>Input File: omh/bugs.omh

</body>
</html>

