help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Compiling xli_mathprog.dll that supports tables (i.e cs


From: Noli Sicad
Subject: Re: [Help-glpk] Compiling xli_mathprog.dll that supports tables (i.e csv, dbf, sql)
Date: Tue, 9 Feb 2010 19:59:06 +0700

Hi Andrew,

> Do you mean viewing the matrix pattern? Or what?

Yes, matrix pattern produced by running mathprog script / model.

>> Anyway, anybody know how to compile xli_mathprog.dll with the current
>> glpk-4.42 with table support.
>
> I think you could compile glpk_x_y.dll using one of batch scripts
> provided in glpk/w32 or glpk/w64, and then compile xli_mathprog.dll
> along with glpk_x_y.lib import library.

Yes, it is easy to compile glpk_x_y.dll using one of batch scripts
provided in glpk/w32 or glpk/w64. However, if you look at one of the
batch *.bat (below) in the xli_mathprog.rar. It includes platform.exe.
I think it is cross platform exe file. I searched platform.exe in the
net and I could not find it.

I think this batch file below need to be revised, but the problem I
don't know how.

Thanks. Noli

~~~~~~~~~~~~~~~~~~~~
set glpkdir=\glpk

set glpk1=%glpkdir%\src\glplib4.c
if exist %glpkdir%\src\glprng.c set glpk1=%glpkdir%\src\glprng.c
set glpk=%glpkdir%\src\glpavl.c %glpkdir%\src\glpdmp.c
%glpkdir%\src\glplib1a.c %glpkdir%\src\glplib2.c
%glpkdir%\src\glplib3.c %glpk1% %glpkdir%\src\glpmpl1.c
%glpkdir%\src\glpmpl2.c %glpkdir%\src\glpmpl3.c
%glpkdir%\src\glpmpl4.c

set c=cl

REM determine platform (win32/win64)
echo main(){printf("SET PLATFORM=win%%d\n", (int) (sizeof(void
*)*8));}>platform.c
%c% /nologo platform.c /Feplatform.exe
del platform.c
platform.exe >platform.bat
del platform.exe
call platform.bat
del platform.bat

if not exist bin\%PLATFORM%\*.* md bin\%PLATFORM%

set src=lp_MathProg.c xli_MathProg.c %glpk%

%c% -I.. -I../.. -I../../colamd -I%glpkdir%\include /LD /MT /Zp8 /Gz
-D_WINDLL -D_USRDLL -D_CRT_SECURE_NO_DEPRECATE -DWIN32 %src%
../lp_XLI.def /Febin\%PLATFORM%\xli_MathProg.dll
editbin /LARGEADDRESSAWARE bin\%PLATFORM%\xli_MathProg.dll

rem http://msdn2.microsoft.com/en-us/library/ms235229.aspx
rem for vs2005 need to embed manifest in dll with manifest tool -  #2
on the next line does this.
rem mt /outputresource:"bin\%PLATFORM%\xli_MathProg.dll;#2" /manifest
"bin\%PLATFORM%\xli_MathProg.dll.manifest"

if exist *.obj del *.obj
set PLATFORM=




reply via email to

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