<div dir="ltr"><div>Hi,</div>
<div> </div>
<div> I have resolved the first problem. But I have not been able to get over the linker warnings.</div>
<div> </div>
<div>Regards,</div>
<div>Nandini<br><br></div>
<div class="gmail_quote">On Fri, Oct 10, 2008 at 12:21 PM, Nandini Chakravorti <span dir="ltr"><<a href="mailto:nchakravorti@gmail.com">nchakravorti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div> I have the Ipopt.lib(generated on Cygwin using Intel F90 compiler as I am using MUMPS) and then I have written a C++ Dll wrapper in Visual Studio 2005 - which basically generates a dll for interfacing with C#. I have a problem which has 5 variables and 6 constraints.</div>
<div> </div>
<div> Well, now when the execution comes to " eval_grad_f " <<em>bool eval_grad_f(int n, <font color="#cc33cc">const Number* x</font>, bool new_x, double* grad_f)</em>> - The value of n is 5 as expected. But, if I try to see the value of x[2] in my debugger watch window I see the following < <font color="#000000"> <font color="#ff9900">x[2] error: index '2' out of bound for pointer/array 'x'</font> </font> >. And even if I try to copy the values to another array - I get some junk values in the copied array. Any idea what might be going wrong? </div>
<div> </div>
<div> </div>
<div> And another thing - while I build my Dll I get the following linker warnings <br> warning LNK4248: unresolved typeref token (01000017) for 'Ipopt.IteratesVector'; image may not run<br>
warning LNK4248: unresolved typeref token (01000018) for 'Ipopt.IpoptData'; image may not run<br> warning LNK4248: unresolved typeref token (01000019) for 'Ipopt.IpoptCalculatedQuantities'; image may not run</div>
<div> </div>
<div>Regards,</div>
<div>Nandini</div></div></blockquote></div><br></div>