<html><body bgcolor="#FFFFFF"><div>Has anyone tried to compile an ipopt matlab Mex file in windows using Microsoft visual studio? If so, I would be grateful of somebody could sende their Visual Studio project file along with any special dependencies. </div><div><br></div><div>Anil</div><div> </div><div><br>Sent from my iPhone</div><div><br>Begin forwarded message:<br><br></div><blockquote type="cite"><div><b>From:</b> Aritra Nath <<a href="mailto:akn@cise.ufl.edu">akn@cise.ufl.edu</a>><br><b>Date:</b> December 10, 2009 2:21:11 PM EST<br><b>To:</b> <a href="mailto:ipopt@list.coin-or.org"><a href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a></a><br><b>Subject:</b> <b>[Ipopt] Help</b><br><br></div></blockquote><div></div><blockquote type="cite"><div>Hi,<br><br>I am trying to compile IPOPT on windows with Visual Studio 2008 Professional edition.<br><br>I am encountering a whole lot of errors but from what I can make out it's to do with the use of <b>'ipfint' </b>data type. I am not sure why this is happening as I have included the definition in the IpoptConfig.h. I am using the f2c compiler also using the vcf2c library. Is there any other thing(file/libraries/definitions) that need to be included in the project.<br>
<br><br>I am pasting a part of the error log here:<br><br>/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
1>------ Build started: Project: libIpopt, Configuration: Release Win32 ------<br>1>Compiling...<br>1>IpPiecewisePenalty.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>IpCGSearchDirCalc.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>IpCGPerturbationHandler.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>IpCGPenaltyRegOp.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>IpCGPenaltyLSAcceptor.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>IpCGPenaltyData.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>IpCGPenaltyCq.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>IpTNLPAdapter.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\ipopt\ipopt\CoinIpopt\Ipopt\src\LinAlg\TMatrices\IpSymTMatrix.hpp(100) : error C2061: syntax error : identifier 'ipfint'<br>
1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2468) : error C2065: 'jac_c_iRow' : undeclared identifier<br>1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2468) : error C2061: syntax error : identifier 'ipfint'<br>
1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2469) : error C2065: 'jac_c_jCol' : undeclared identifier<br>1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2469) : error C2061: syntax error : identifier 'ipfint'<br>
1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2513) : error C2541: 'delete' : cannot delete objects that are not pointers<br>1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2514) : error C2541: 'delete' : cannot delete objects that are not pointers<br>
1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2531) : error C2541: 'delete' : cannot delete objects that are not pointers<br>1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2532) : error C2541: 'delete' : cannot delete objects that are not pointers<br>
1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2540) : error C2541: 'delete' : cannot delete objects that are not pointers<br>1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2541) : error C2541: 'delete' : cannot delete objects that are not pointers<br>
1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2577) : error C2541: 'delete' : cannot delete objects that are not pointers<br>1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2578) : error C2541: 'delete' : cannot delete objects that are not pointers<br>
1>IpStdInterfaceTNLP.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>IpStdCInterface.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>IpSolveStatistics.cpp<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146: syntax error : missing ';' before identifier 'ipfint'<br>1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>Regards,<br>Aritra Nath<br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ipopt mailing list</span><br><span><a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a></span><br><span><a href="http://list.coin-or.org/mailman/listinfo/ipopt">http://list.coin-or.org/mailman/listinfo/ipopt</a></span><br></div></blockquote></body></html>