[q-lang-users] sum not working (x86_64 / linux)
Brought to you by:
agraef
|
From: Ethan G. <ee...@fa...> - 2009-04-16 02:21:46
|
Hiyos. I just installed Q today, submitting a Source Mage GNU/Linux 'spell' for it, so that's one more distro that carries Q. At least one function, sum, is not working. The manual gives the following example: ==> sum [1..123456] 7620753696 I entered something similar with different results: ==> sum [1..100] sum [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100] simpler uses of sum do not work either: ==> sum 1 2 sum 1 2 The splash text may be of interest: 0 ethan@vardo q-pure (0) $ q def: error loading module Warning: 141 unresolved external symbols ____ / __ \ Q interpreter version 7.11 (x86_64-pc-linux-gnu) / /_/ / Copyright (c) 1991-2008 by Albert Graef \___\_\ http://q-lang.sourceforge.net This software is distributed under the terms of the GNU General Public License version 2 or later; type `copying' for details. ! File def, line 77: Value mismatch in definition ==> What is this module "def"? There is no such file either in the source tree or installed. I assume a syntax error leading to a bad import statement, but how can a nonexistant file have line numbers? Testing the install did not produce anything useful: 0 ethan@vardo q-7.11 (0) $ q test.q Segmentation fault -- wow.. wondering how to make it more general and less hard-coded is making my head hurt. that's a good sign that it's my code |