[Ipopt-tickets] [Ipopt] #134: Help to compile hs071_c example on Windows

Ipopt coin-trac at coin-or.org
Sat Sep 18 22:17:15 EDT 2010


#134: Help to compile hs071_c example on Windows
------------------------------+---------------------------------------------
Reporter:  wendel             |       Owner:  ipopt-team
    Type:  clarification      |      Status:  new       
Priority:  normal             |   Component:  Ipopt     
 Version:  3.8 (C++ Version)  |    Severity:  normal    
Keywords:                     |  
------------------------------+---------------------------------------------
 Dear experts and users

 I downloaded the Ipopt (3.8) binary version for Windows at this link:

 http://www.coin-
 or.org/download/binary/Ipopt/Ipopt-3.8.0-win32-gcc4.3.2.zip

 Now, I am trying to compile the example hs071_c.c. Firstly, I put copies
 in the same source code directory (\examples\hs071_c) of the following
 files:

 all files from \lib:

 libipopt.a
 libipopt.la

 all files from \include\coin, including, of couse, IpStdCInterface.h

 After, I try to use the command:

 gcc -o hs071_c.exe hs071_c.c -Wall -L .\ -lipopt

 I thought that would be enough for compile the example, but I am getting
 several erros like that:


 .\/libipopt.a(mumps_io_thread.o):mumps_io_thread.c:(.text 0x12c2):
 undefined reference to `pthread_mutex_unlock'

 .\/libipopt.a(mumps_io_thread.o):mumps_io_thread.c:(.text 0x12d8):
 undefined reference to `pthread_cond_broadcast'

 .\/libipopt.a(mumps_io_thread.o):mumps_io_thread.c:(.text 0x12e8):
 undefined reference to `pthread_cond_broadcast'

 collect2: ld returned 1 exit status

 My Computer is a WinXP 32 bit and my GCC version is 4.5.0

 Can Anyone say me how I Can to compile the hs071_c example? I think that
 can be very easy for someones, but I am having problems. That is very
 important for my academic work, I am a master degree's student.

 Best regards

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/134>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list