[Bcp-tickets] [Branch-Cut-Price Framework] #26: can't compile with cplex 12.2

Branch-Cut-Price Framework coin-trac at coin-or.org
Thu Aug 1 11:56:05 EDT 2013


#26: can't compile with cplex 12.2
-------------------------+----------------------
  Reporter:  compiler    |      Owner:  somebody
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:
 Component:  component1  |    Version:  2.0
Resolution:              |   Keywords:
-------------------------+----------------------

Comment (by artondorneles):

 Replying to [ticket:26 compiler]:
 > Hi,
 >
 > I am using Mac OS X 10.6.8 (10K549) with gcc4.3 +gfortran (Not directly
 related to this problem but I could not compile the code with gcc45 and
 gcc46). As instructed in the configure.site file, I have declared the
 cplex include and library directories as follows:
 >
 > with_cplex_incdir='/CPLEX/cplex/include/ilcplex'
 > with_cplex_lib='-L/CPLEX/cplex/lib/x86-64_darwin9_gcc4.0/static_pic
 -lcplex -lpthread'
 >
 > It says it can't compile the simple test code that calls CPXgetstat. I
 don't think the problem is a cplex licence problem because the ILM file
 path is a global env var on my system.
 >
 > I couldn't attached the configure log, so here is a snapshot:
 >
 > .....
 > checking for pkg-config... /opt/local/bin/pkg-config
 > checking pkg-config is at least version 0.16.0... yes
 > checking for COIN-OR package CoinUtils... yes: 2.8.1
 > checking for COIN-OR package Glpk... not given: No package 'coinglpk'
 found
 > checking for COIN-OR package SoPlex... not given: No package
 'coinsoplex' found
 > checking for COIN-OR package Sample... not given: No package
 'coindatasample' found
 > checking for COIN-OR package Netlib... not given: No package
 'coindatanetlib' found
 > checking if user provides library for Cplex... yes
 > checking whether symbol CPXgetstat is available with CPX... no
 > configure: error: Cannot find symbol(s) CPXgetstat with CPX
 > configure: error: /bin/sh '../../Osi/configure' failed for Osi
 >
 > Thanks,
 > Serdar Karademir

 I guess you just need to append -lm after -lpthread.

-- 
Ticket URL: <https://projects.coin-or.org/ticket/26#comment:2>
Branch-Cut-Price Framework <http://projects.coin-or.org/Bcp>
A parallel framework for branch-cut-price algorithms.



More information about the Bcp-tickets mailing list