Hello! I'd like to use the Math::LP::Solve module. I downloaded the module from the CPAN and tried to install it. However there's an error which I don't understand. Who can help me ?
perl Makefile.PL downloaded automatic the needed lp_solve_3.2 c++ source coude. I compiled it with make and i followed the instruction to use the compilation directive -fPIC for gcc. The compilation was more or less successfull, you can see the selft testing result at the end. Then I tried to call make for the perl module what was definitly not successfull. Here's the output of make: cc -c -Ilp_solve_3.2 -D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"3.03\" -DXS_VERSION=\"3.03\" -fpic -I/usr/lib/perl5/5.6.1/i686-linux-thread-multi/CORE Solve.c In file included from Solve.c:444: lp_solve_3.2/lpkit.h:471:17: macro "yyparse" passed 1 arguments, but takes just 0 make: *** [Solve.o] Fehler 1 I also tried to compile the c source code with compilation directive -fpic and without any special directive. I downloaded the lp_solve_3.2 from another mirror, too without any succes. I use a RedHat 7.1 Linux System on a PC (i686) and I have Perl 5.6.1; gcc, cc 2.96. I haven't yet contacted the author Wim Verhaegen what i will do when nobody can help me here. And here's the output of the make test command for lp_solve_3.2: for i in lp_examples/ex1.lp lp_examples/ex2.lp lp_examples/ex3.lp lp_examples/ex4.lp lp_examples/ex5.lp lp_examples/ex6.lp lp_examples/ex7.lp; do\ ./lp_solve -p -s -time < $i > xxx.tmp;\ if diff xxx.tmp lp_examples/`basename $i .lp`.out > /dev/null; then\ echo "$i gives the correct result";\ else\ echo "*** $i gives different result, please check ***";\ fi;\ done;\ rm xxx.tmp CPU Time for parsing input: 0s (0s total since program start) CPU Time for solving: 0s (0s total since program start) lp_examples/ex1.lp gives the correct result CPU Time for parsing input: 0.02s (0.02s total since program start) CPU Time for solving: 0s (0.02s total since program start) lp_examples/ex2.lp gives the correct result CPU Time for parsing input: 0.01s (0.01s total since program start) CPU Time for solving: 0.01s (0.02s total since program start) lp_examples/ex3.lp gives the correct result CPU Time for parsing input: 0s (0s total since program start) CPU Time for solving: 0.01s (0.01s total since program start) lp_examples/ex4.lp gives the correct result CPU Time for parsing input: 0.01s (0.01s total since program start) CPU Time for solving: 0.01s (0.02s total since program start) *** lp_examples/ex5.lp gives different result, please check *** CPU Time for parsing input: 0.01s (0.01s total since program start) CPU Time for solving: 0s (0.01s total since program start) lp_examples/ex6.lp gives the correct result CPU Time for parsing input: 0s (0s total since program start) CPU Time for solving: 0s (0s total since program start) lp_examples/ex7.lp gives the correct result Like you can see Test 5 was not alright, but I don't know what it does mean Thanks for any help, Janek Schleicher -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]