[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] Problem with glpk mex 64 bit
From: |
Andrew Makhorin |
Subject: |
Re: [Bug-glpk] Problem with glpk mex 64 bit |
Date: |
Thu, 29 Mar 2007 15:16:28 +0400 |
> Thank you for the patched version.
> I have tried compiling and I got the following error:
> glpkcc.cpp: In function 'int glpk(int, int, int, double*, int, int*,
> int*, double*, double*, char*, int*, double*, int*, double*, int*,
> int, int, int, double*, double*, double*, double*, double*, double*,
> double*)':
> glpkcc.cpp:297: error: 'insist' no se declaró en este ámbito
>
> mex: compile of 'glpkcc.cpp' failed.
> I'm not sure how this translates from Spanish.
>
> I don't know if this will help, but the command I used to compile was
> the following:
> /opt/Matlab/bin/mex -I /usr/include/glpk.h -I /usr/include/glplib.h
> glpkcc.cpp /usr/lib/libglpk.a
Replace the fragment (see lines 296-297):
default:
insist (method != method);
as follows:
default:
mexErrMsgTxt("__glpk__: method != method");
longjmp (mark, -1);
Hope then all will work.