[Ipopt] Linker errors

Krish Krishnan rkrishnan8216 at yahoo.com
Wed Aug 13 01:24:37 EDT 2008


Hi all:

I have previously reported some problems in finding out the errors in my program.  I was unable to determine the location and cause of the errors as I had compiled the code as a windows application using the Microsoft Foundation Class.  Because of this I was unable to obtain any console output.

To rectify this, I rewrote the entire application as a console application, substituting the STL string class for the MFC CString etc.  When I try to link this to IpOpt library, there is a clash of libraries - IpOpt was linked to (I believe libcmt.lib ) using the MTd option as a default.  This causes a conflict with libraries such as msvcrt.  I tried suppressing a bunch of MSVC libraries, but have been unlucky so far.  In some cases I find that something present in one library is present in another library, or in the extreme case I am unable to find ostream and the stl string class.

Can anyone well versed in the peculiarites of Visual C help?  What are the libraries I should exclude since IpOpt was linked with MTd?  How can I ensure I will pull in ostream and stl::basic_string?

Thanks a lot
Krish



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20080812/62b1c586/attachment.html 


More information about the Ipopt mailing list