glpkmex installation error

View: New views
2 Messages — Rating Filter:   Alert me  

glpkmex installation error

by GiorgiaR :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi


I have installed glpk-4.34 for Windows and cant seem to install glpkmex in MATLAB and i keep getting this error:



>> makeglpkmex

GLPKMEX - A Matlab interface for GLPK. Script installer.

Version 2.2 compatible with GLPK 4.18 (or higher)

(C) 2001-2007, Nicolo #39; Giorgetti.

 

Do you want to use graphic installer? Y/N [Y]: y

GLPK path... C:\Programmi\GnuWin32

GLPK include files...OK

GLPK library file...OK

Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n

lcc preprocessor error: glpkcc.cpp:27 Could not find include file <cfloat>

lcc preprocessor error: glpkcc.cpp:28 Could not find include file <csetjmp>

lcc preprocessor error: glpkcc.cpp:29 Could not find include file <ctime>

Error glpkcc.cpp: 34  empty declaration

Error glpkcc.cpp: 34  syntax error; found "C" expecting `; #39;

Error glpkcc.cpp: 34  unrecognized declaration

Error glpkcc.cpp: 34  unrecognized declaration

lcc preprocessor error: glpkcc.cpp:36 Could not find include file <glplib.h>

Error glpkcc.cpp: 36  unrecognized declaration

Error glpkcc.cpp: 110  syntax error; found `mark #39; expecting `; #39;

Error glpkcc.cpp: 139  undeclared identifier `clock_t #39;

Warning glpkcc.cpp: 139  Statement has no effect

Error glpkcc.cpp: 139  syntax error; found `t_start #39; expecting `; #39;

Error glpkcc.cpp: 139  undeclared identifier `t_start #39;

Error glpkcc.cpp: 147  illegal use of type name `glp_prob #39;

Error glpkcc.cpp: 147  undeclared identifier `lp #39;

Error glpkcc.cpp: 147  operands of * have illegal types `glp_prob #39; and `int #39;

Error glpkcc.cpp: 147  operands of = have illegal types `int #39; and `pointer to glp_prob #39;

Error glpkcc.cpp: 147  lvalue required

Error glpkcc.cpp: 152  type error in argument 1 to `glp_set_obj_dir #39;; found `int #39; expected `pointer to glp_prob #39;

Error glpkcc.cpp: 154  type error in argument 1 to `glp_set_obj_dir #39;; found `int #39; expected `pointer to glp_prob #39;

Error glpkcc.cpp: 160  too many errors

 

  C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of  #39;glpkcc.cpp #39; failed.

 

??? Error using ==> mex at 218

Unable to complete successfully.

 

Error in ==> makeglpkmex at 111

eval([ #39;mex  #39; cmd]);






Please advise...Thank you!




Rgds

Giorgia

 

Hi


I have installed glpk-4.34 for Windows and cant seem to install glpkmex in MATLAB and i keep getting this error:



>> makeglpkmex

GLPKMEX - A Matlab interface for GLPK. Script installer.

Version 2.2 compatible with GLPK 4.18 (or higher)

(C) 2001-2007, Nicolo' Giorgetti.

 

Do you want to use graphic installer? Y/N [Y]: y

GLPK path... C:\Programmi\GnuWin32

GLPK include files...OK

GLPK library file...OK

Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n

lcc preprocessor error: glpkcc.cpp:27 Could not find include file <cfloat>

lcc preprocessor error: glpkcc.cpp:28 Could not find include file <csetjmp>

lcc preprocessor error: glpkcc.cpp:29 Could not find include file <ctime>

Error glpkcc.cpp: 34  empty declaration

Error glpkcc.cpp: 34  syntax error; found "C" expecting `;'

Error glpkcc.cpp: 34  unrecognized declaration

Error glpkcc.cpp: 34  unrecognized declaration

lcc preprocessor error: glpkcc.cpp:36 Could not find include file <glplib.h>

Error glpkcc.cpp: 36  unrecognized declaration

Error glpkcc.cpp: 110  syntax error; found `mark' expecting `;'

Error glpkcc.cpp: 139  undeclared identifier `clock_t'

Warning glpkcc.cpp: 139  Statement has no effect

Error glpkcc.cpp: 139  syntax error; found `t_start' expecting `;'

Error glpkcc.cpp: 139  undeclared identifier `t_start'

Error glpkcc.cpp: 147  illegal use of type name `glp_prob'

Error glpkcc.cpp: 147  undeclared identifier `lp'

Error glpkcc.cpp: 147  operands of * have illegal types `glp_prob' and `int'

Error glpkcc.cpp: 147  operands of = have illegal types `int' and `pointer to glp_prob'

Error glpkcc.cpp: 147  lvalue required

Error glpkcc.cpp: 152  type error in argument 1 to `glp_set_obj_dir'; found `int' expected `pointer to glp_prob'

Error glpkcc.cpp: 154  type error in argument 1 to `glp_set_obj_dir'; found `int' expected `pointer to glp_prob'

Error glpkcc.cpp: 160  too many errors

 

  C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of 'glpkcc.cpp' failed.

 

??? Error using ==> mex at 218

Unable to complete successfully.

 

Error in ==> makeglpkmex at 111

eval(['mex ' cmd]);






Please advise...Thank you!




Rgds

Giorgia


_______________________________________________
Help-glpk mailing list
Help-glpk@...
http://lists.gnu.org/mailman/listinfo/help-glpk

Re: glpkmex installation error

by Ali Baharev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

The error messages say that your compiler could not find the
corresponding standard C header files.

It also seems to me you are using a C++ compiler but you should use
the C compiler instead.

The most recent version of GLPK is 4.40.

I am sorry i cannot be more helpful at the moment but i have not used
the MATLAB interface, probably someone will come up with the solution
soon.

Good luck anyhow,

Ali


_______________________________________________
Help-glpk mailing list
Help-glpk@...
http://lists.gnu.org/mailman/listinfo/help-glpk