Glad the tool might be of use to you! There was indeed a problem with the postfix -- operator. I made the fix and v1.01 is available for download at http://tsemsb.blogspot.com/2010/04/cgcc-now-at-version-101.html
As of now the assignment operators like -= or += are not implemented, however the long hand version does work so for ( index =initial; index>=0; index = index - 1) would work even though for ( index =initial; index>=0; index -= 1) would not work. I also fixed the hardcoded ~/GCode2 problem you ran into. See the README file for information on how to setup a symbolic link that solves the problem. Also I noticed you used // to comment out a lot of lines. You can use the /* and */ to do a block comment. Lawrence On Thu, Apr 8, 2010 at 12:05 AM, Thomas Powderly <tomp4...@gmail.com> wrote: > Lawrence, > thanks for a nice tool in CGCC > > i ran the example and found > > i needed to create a directory ~/GCode2 and then needed to put the > CGCC directory in there > under my Ubuntu, the cgcc.err file wasn't able to be rm'd but that may > be local permissions on my system > > I understand your code better as i use it more > so i began to modify the suppled example > > i believe the -- and -= operators are a problem > > i made a loop the ran backwards (right to left) > with for ( ndx=initial; index>=0; index--) { > and always got errors on the index-- > > then to work around this, i left it as index++ > but reduced it by 2 to get the -1 desired > to do this, i tried index -= 2 > and got more errors > > heres a screenshot and the code > http://imagebin.ca/view/k-XN6b2C.html > http://pastebin.ca/1858633 > > thx again > tom3p > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users