[Ipopt] Ipopt windows/matlab

Anil Rao anilvrao at gmail.com
Fri Dec 11 13:32:44 EST 2009


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.

Anil


Sent from my iPhone

Begin forwarded message:

> From: Aritra Nath <akn at cise.ufl.edu>
> Date: December 10, 2009 2:21:11 PM EST
> To: ipopt at list.coin-or.org
> Subject: [Ipopt] Help
>

> Hi,
>
> I am trying to compile IPOPT on windows with Visual Studio 2008  
> Professional edition.
>
> I am encountering a whole lot of errors but from what I can make out  
> it's to do with the use of 'ipfint' 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.
>
>
> I am pasting a part of the error log here:
>
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> ////////////////////////////////////////////////////////////////////
> 1>------ Build started: Project: libIpopt, Configuration: Release  
> Win32 ------
> 1>Compiling...
> 1>IpPiecewisePenalty.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpCGSearchDirCalc.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpCGPerturbationHandler.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpCGPenaltyRegOp.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpCGPenaltyLSAcceptor.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpCGPenaltyData.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpCGPenaltyCq.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpTNLPAdapter.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>c:\ipopt\ipopt\CoinIpopt\Ipopt\src\LinAlg\TMatrices 
> \IpSymTMatrix.hpp(100) : error C2061: syntax error : identifier  
> 'ipfint'
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2468) : error C2065:  
> 'jac_c_iRow' : undeclared identifier
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2468) : error C2061:  
> syntax error : identifier 'ipfint'
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2469) : error C2065:  
> 'jac_c_jCol' : undeclared identifier
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2469) : error C2061:  
> syntax error : identifier 'ipfint'
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2513) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2514) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2531) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2532) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2540) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2541) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2577) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2578) : error C2541:  
> 'delete' : cannot delete objects that are not pointers
> 1>IpStdInterfaceTNLP.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpStdCInterface.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> 1>IpSolveStatistics.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) :  
> error C2146: syntax error : missing ';' before identifier 'ipfint'
> 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
> 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
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> /// 
> ////////////////////////////////////////////////////////////////////
>
> Regards,
> Aritra Nath
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20091211/8358c3e9/attachment.html 


More information about the Ipopt mailing list