help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Problems installing glpkmex with glpk 4.28


From: mbanco
Subject: Re: [Help-glpk] Problems installing glpkmex with glpk 4.28
Date: Fri, 16 May 2008 04:26:48 -0700 (PDT)

Hi Andrew

I replaced 'lib_mem_usage' by 'glp_mem_usage' but now have the next message:

GLPKMEX - A Matlab interface for GLPK. Script installer. 
Version 2.4 compatible with GLPK 4.20 (or higher)
(C) 2001-2007, Nicolo' Giorgetti.
 
Do you want to use graphic installer? Y/N [Y]: y
GLPK path... C:\MATLAB\R2007b\work\glpk
GLPK include files...OK
GLPK library file...OK
Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n
Microsoft (R) Incremental Linker Version 8.00.50727.762 
Copyright (C) Microsoft Corporation.  All rights reserved. 
 
C:\Users\EPRE\AppData\Local\Temp\mex_C18BBF61-3122-4C16-D7B3-E0CDC2B83FCA\glpkcc.obj
C:\MATLAB\R2007b\work\glpk\src\.libs\libglpk.a  
   Creating library
C:\Users\EPRE\AppData\Local\Temp\mex_C18BBF61-3122-4C16-D7B3-E0CDC2B83FCA\templib.x
and object
C:\Users\EPRE\AppData\Local\Temp\mex_C18BBF61-3122-4C16-D7B3-E0CDC2B83FCA\templib.exp
 
libglpk.a(glplib03.o) : error LNK2019: unresolved external symbol
___getreent referenced in function __glp_lib_xerror1 
libglpk.a(glplib01.o) : error LNK2001: unresolved external symbol
___getreent 
libglpk.a(glplib04.o) : error LNK2001: unresolved external symbol
___getreent 
libglpk.a(glplpx14.o) : error LNK2019: unresolved external symbol
__imp___ctype_ referenced in function _read_card 
libglpk.a(glplpx16.o) : error LNK2001: unresolved external symbol
__imp___ctype_ 
libglpk.a(glplib11.o) : error LNK2001: unresolved external symbol
__imp___ctype_ 
libglpk.a(glppds.o) : error LNK2001: unresolved external symbol
__imp___ctype_ 
libglpk.a(glplpx16.o) : error LNK2019: unresolved external symbol __alloca
referenced in function _fatal 
libglpk.a(glplib09.o) : error LNK2001: unresolved external symbol __alloca 
libglpk.a(glplpx16.o) : error LNK2019: unresolved external symbol _setjmp
referenced in function __glp_lpx_read_cpxlp 
libglpk.a(glpapi09.o) : error LNK2001: unresolved external symbol _setjmp 
libglpk.a(glplpx16.o) : error LNK2019: unresolved external symbol ___errno
referenced in function _read_char 
libglpk.a(glplib08.o) : error LNK2001: unresolved external symbol ___errno 
libglpk.a(glpapi09.o) : error LNK2001: unresolved external symbol ___errno 
libglpk.a(glppds.o) : error LNK2001: unresolved external symbol ___errno 
libglpk.a(glplib08.o) : error LNK2019: unresolved external symbol _gzclose
referenced in function __glp_lib_xfclose 
libglpk.a(glplib08.o) : error LNK2019: unresolved external symbol _gzflush
referenced in function __glp_lib_xfflush 
libglpk.a(glplib08.o) : error LNK2019: unresolved external symbol _gzputc
referenced in function __glp_lib_xfputc 
libglpk.a(glplib08.o) : error LNK2019: unresolved external symbol _gzerror
referenced in function __glp_lib_xfgetc 
libglpk.a(glplib08.o) : error LNK2019: unresolved external symbol _gzgetc
referenced in function __glp_lib_xfgetc 
libglpk.a(glplib08.o) : error LNK2019: unresolved external symbol _gzopen
referenced in function __glp_lib_xfopen 
libglpk.a(glplib12.o) : error LNK2019: unresolved external symbol
_lt_dlclose referenced in function __glp_xdlclose 
libglpk.a(glplib12.o) : error LNK2019: unresolved external symbol _lt_dlsym
referenced in function __glp_xdlsym 
libglpk.a(glplib12.o) : error LNK2019: unresolved external symbol _lt_dlexit
referenced in function __glp_xdlopen 
libglpk.a(glplib12.o) : error LNK2019: unresolved external symbol _lt_dlopen
referenced in function __glp_xdlopen 
libglpk.a(glplib12.o) : error LNK2019: unresolved external symbol
_lt_dlerror referenced in function __glp_xdlopen 
libglpk.a(glplib12.o) : error LNK2019: unresolved external symbol _lt_dlinit
referenced in function __glp_xdlopen 
glpkcc.mexw32 : fatal error LNK1120: 17 unresolved externals 
 
  C:\MATLAB\R2007B\BIN\MEX.PL: Error: Link of 'glpkcc.mexw32' failed. 

Regards,

Mauricio


Andrew Makhorin wrote:
> 
>> I have installed glpk-4.28 and replaced replace glp_ulong by glp_long in
>> file 
>> glpkcc.cpp but when I run makeglpkmex Matlab send the next message: 
> 
>> GLPKMEX - A Matlab interface for GLPK. Script installer. 
> 
>> Version 2.4 compatible with GLPK 4.20 (or higher) 
> 
>> (C) 2001-2007, Nicolo' Giorgetti. 
> 
>   
> 
>> Do you want to use graphic installer? Y/N [Y]: n 
> 
>> GLPK path: c:\matlab\r2007b\work\glpk 
> 
>> GLPK path... c:\matlab\r2007b\work\glpk 
> 
>> GLPK include files...OK 
> 
>>              Warning: Specified directory does not contain GLPK libglpk.a
>> library! 
> 
>> Specify full GLPK libglpk.a path:
>> c:\matlab\r2007b\work\glpk\src\.libs 
> 
>> GLPK library file...OK 
> 
>> Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n 
> 
>> glpkcc.cpp 
> 
>> glpkcc.cpp(375) : error C2664: '_glp_lib_mem_usage' : cannot convert
>> parameter 4 from 'glp_long *' to 'xlong_t *' 
> 
>>         Types pointed to are unrelated; conversion requires
>> reinterpret_cast, C-style cast or function-style cast 
> 
>>   C:\MATLAB\R2007B\BIN\MEX.PL: Error: Compile of 'glpkcc.cpp' failed. 
> 
> The routine lib_mem_usage is not available on api level and should
> not be used in the application program. There is glpk api routine,
> glp_mem_usage, which performs the same operation.
> 
> To fix the error 'lib_mem_usage' should be changed to 'glp_mem_usage'
> in file glpkcc.cpp, line 375.
> 
> 
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-installing-glpkmex-with-glpk-4.28-tp17263875p17272589.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]