[Coin-discuss] COIN on a Mac

Matthew Saltzman mjs at ces.clemson.edu
Mon Jan 6 16:36:04 EST 2003


On Mon, 6 Jan 2003, Harder, Robert, Capt, DPX-AFPOA wrote:

>
> > For this one, edit Makefile/Makefile.location and comment out the
> > references to OSL and any other solvers you don't have.  If you do have
> > OSL, then fix the OSL entries in Makefile/Makefile.location to reflect the
> > correct location of OSL files.
>
> Thanks. Much better. Now I'm getting these "legitimate" errors when
> compiling Osi:
>
> ===============================================
>
> Creating dependency OsiClpSolverInterface.d
>
> Compiling OsiClpSolverInterface.cpp
> In file included from OsiClpSolverInterface.cpp:12:
> /usr/include/sys/resource.h:81: field `ru_utime' has incomplete type
> /usr/include/sys/resource.h:82: field `ru_stime' has incomplete type
> /usr/include/sys/resource.h:124: 'rlim_t' is used as a type, but is not
> defined
>    as a type.
> /usr/include/sys/resource.h:125: 'rlim_t' is used as a type, but is not
> defined
>    as a type.
> /usr/include/sys/resource.h:130: parse error before `[' token
> OsiClpSolverInterface.cpp: In function `double cpuTime()':
> OsiClpSolverInterface.cpp:38: `struct rusage' has no member named `ru_utime'
> OsiClpSolverInterface.cpp:39: `struct rusage' has no member named `ru_utime'
> make[2]: *** [Darwin-g/OsiClpSolverInterface.o] Error 1
> make[1]: *** [install] Error 2
> make: *** [inst-libOsiClp] Error 2
>
> ===============================================

I believe this is the issues that we've been discussing for the last
couple of days.  Try adding '#include <sys/time.h>' before the '#include
<sys/resource.h>' directive.  I have a feeling that change hasn't made it
into CVS yet.

>
> -Rob
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
>

-- 
		Matthew Saltzman

Clemson University Math Sciences
mjs at clemson.edu
http://www.math.clemson.edu/~mjs




More information about the Coin-discuss mailing list