View Single Post
Old 2012-10-28, 03:00   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

25·53 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Presumably it's trying to access the global variable i, but there are no global variables since you're not in gp. Try changing

i=e;

into

my(i=e);

in the GP script to make the variable local, then see if it works. Also don't forget to use the -g option when running gp2c.
Thanks for the help, but I got no detectable change. I do normally run the -g option, but simply skipped it for the small sample. I did use it this time.

I should be able to do what I'm try to, shouldn't I?

Maybe I'll try something more simple...

If/when this does work, will the c version have a noticeable difference in speed over running it via gp2c-run?
EdH is offline   Reply With Quote