Hello,<div><br></div><div>Thanks Stefan! Okay I am ignoring it. but then I get another error. I am following the instructions on this page &quot;<a href="https://projects.coin-or.org/Ipopt/wiki/MatlabInterface">https://projects.coin-or.org/Ipopt/wiki/MatlabInterface</a>&quot;. In Step 4 I modified the file &quot;Makefile&quot; and after typing &quot;make install&quot; I get the following error:</div>
<div><br></div><div><div>$ make install</div><div>g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparent</div><div>heses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversi</div>
<div>on -Wno-unknown-pragmas   -DMATLAB_MEXFILE  -I/home/Johannes/CoinIpopt/include/c</div><div>oin -IC:/Program\ Files/MATLAB/R2007a/extern/include \</div><div>        -o matlabfunctionhandle.o -c matlabfunctionhandle.cpp</div>
<div>In file included from C:/Program Files/MATLAB/R2007a/extern/include/mex.h:127,</div><div>                 from matlabfunctionhandle.hpp:12,</div><div>                 from matlabfunctionhandle.cpp:9:</div><div>C:/Program Files/MATLAB/R2007a/extern/include/stdio.h:11: error: redeclaration o</div>
<div>f C++ built-in type `short&#39;</div><div>make: *** [matlabfunctionhandle.o] Error 1</div><div><br></div><div>It&#39;s the first time I am working with Cygwin and Ipopt and I don&#39;t know much about it. I hope you can help :)</div>
<div><br></div><div>Thanks, </div><div>Johannes</div><br><div class="gmail_quote">2009/6/26 Stefan Vigerske <span dir="ltr">&lt;<a href="mailto:stefan@math.hu-berlin.de">stefan@math.hu-berlin.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I can reproduce this on cygwin with gcc 4.3.2<br>
<div class="im"><br>
&gt; gcc -O3 -fomit-frame-pointer -pipe -DNDEBUG -Wimplicit -Wparentheses<br>
&gt; -Wsequence-<br>
&gt; point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -o hs071_c.exe<br>
&gt; hs071_<br>
&gt; c.o  ../src/Interfaces/.libs/libipopt.a -L/usr/lib/gcc/i686-pc-cygwin/3.4.4<br>
&gt; -L/u<br>
&gt; sr/lib/gcc/i686-pc-cygwin/3.4.4/../../.. -lfrtbegin<br>
&gt; /usr/lib/gcc/i686-pc-cygwin/<br>
&gt; 3.4.4/libg2c.a /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a<br>
&gt; -L/managed/gcc-buil<br>
&gt; d/final-v3-bootstrap/gcc-3.4.4-999/.build/i686-pc-cygwin/libstdc++-v3/src<br>
&gt; -L/man<br>
&gt; aged/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/.build/i686-pc-cygwin/libstdc++-<br>
&gt; v3/src/.libs<br>
&gt; -L/managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/.build/gcc -L<br>
&gt; /usr/i686-pc-cygwin/bin -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32<br>
&gt; -lgcc<br>
&gt; -ldl<br>
<br>
</div>The problem seem to be the -lcygwin here. When I link hs071_c.exe<br>
without the -lcygwin, then it works fine.<br>
I don&#39;t know how it get in there, I extra compiled with<br>
--enable-doscompile, but gfortran seem to tell configure that it wants<br>
to have it.<br>
<br>
So I guess you can just ignore this failure, and when you like your own<br>
application with the Ipopt lib, don&#39;t link against cygwin.<br>
<br>
Stefan<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Stefan Vigerske<br>
Humboldt University Berlin, Numerical Mathematics<br>
<a href="http://www.math.hu-berlin.de/~stefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br>
</div></div></blockquote></div><br></div>