Hello,

I have problem with glpk debian package in Lenny in discusses with
help-glpk list, I receive sugestions to change constant in
src/glpmpl.h file to MAX_LENGTH 1000 according as email following
down.

Is possible include into the next package?
Attachment patch, in version 4.39.

Thanks by attention.

---------- Forwarded message ----------
From: Yaron Kretchmer <[email protected]>
Date: Thu, Oct 1, 2009 at 15:24
Subject: Re: [Help-glpk] Problem glpk using mysql, error "string
literal too long".
To: Marcello Henrique <[email protected]>


Yes, you should download source code and recompile.

Good luck!

yaron


On Thu, Oct 1, 2009 at 11:22 AM, Marcello Henrique <[email protected]> wrote:
> I use compiled package in debian lenny  repository is necessary
> download source code, change then and compile again?
> You might say what should I change?
>
> Thank by advices!
>
> On Thu, Oct 1, 2009 at 15:13, Yaron Kretchmer <[email protected]> 
> wrote:
>> in the glpk source code (one of the .h files- I forget which one),
>> there is a constant which defines that max. string length. Change it
>> to something big (1000), and you should be good to go.
>>
>> Cheers
>> Yaron
>>
>>
>> On Thu, Oct 1, 2009 at 10:23 AM, Marcello Henrique <[email protected]> wrote:
>>> Hello all,
>>>
>>> I use glpk over Debian Lenny "GLPSOL: GLPK LP/MIP Solver 4.38", I have
>>> error message "nurse.mod:35: string literal too long" my line 35 this
>>> file nurse.mod is:
>>>
>>> table days_shifts_cost_work IN "MySQL" ...
>>> 'SELECT day,shift,days_shifts.cost,days_shifts.work FROM days_shifts
>>> INNER JOIN days ON days_shifts.day_id=days.id INNER JOIN shifts ON
>>> days_shifts.shift_id=shifts.id' : [ shift,day ], Cal_cost~cost,
>>> Cal_work~work;
>>>
>>>
>>> Anybody help me?
>>>
>>> --
>>> Marcello Henrique
>>> Associação Software Livre de Goiás (www.aslgo.org.br)
>>> Cercomp - UFG (www.cercomp.ufg.br)
>>> _______________________________________________
>>> Help-glpk mailing list
>>> [email protected]
>>> http://lists.gnu.org/mailman/listinfo/help-glpk
>>>
> --
> Marcello Henrique
> Associação Software Livre de Goiás (www.aslgo.org.br)
> Cercomp - UFG (www.cercomp.ufg.br)
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-glpk


-- 
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)
--- src/glpmpl.h.orig	2009-10-02 14:11:34.000000000 -0300
+++ src/glpmpl.h	2009-10-02 14:11:50.000000000 -0300
@@ -103,7 +103,7 @@
 #define A_TUPLE         126   /* n-tuple */
 #define A_VARIABLE      127   /* model variable */
 
-#define MAX_LENGTH 100
+#define MAX_LENGTH 1000
 /* maximal length of any symbolic value (this includes symbolic names,
    numeric and string literals, and all symbolic values that may appear
    during the evaluation phase) */
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to