[GiNaC-list] Empty brackets in compiled C code.
Zach
refinedcode at gmail.com
Fri Dec 7 00:55:35 CET 2012
Hi guys. Finally, with the help of those on this mailing list I was able
to compile the lenet5 demo into c. But at first I was getting a few of
these errors from the compiled C code:
/home/refinedcode/Development/lush/packages/gblearn2/demos/C/lenet5_fprop.c:327:278:
> error: expected expression before ‘)’ token
>
So i opened up the C code and found that all the errors pointed towards
this one line:
(L3_19__x_)->Vtbl->M_net_cscscf(L3_19__x_, L2_1_image_height,
> L2_2_image_width, L2_3_ki0, L2_4_kj0, L2_13_table0, L2_5_si0, L2_6_sj0,
> L2_7_ki1, L2_8_kj1, L2_14_table1, L2_9_si1, L2_10_sj1,
> ((()((((double)(L2_1_image_height-((L2_3_ki0)-1)))/((double)L2_5_si0))-((L2_7_ki1)-1)))/(()L2_9_si1)),
> ((()((((double)(L2_2_image_width-((L2_4_kj0)-1)))/((double)L2_6_sj0))-((L2_8_kj1)-1)))/(()L2_10_sj1)),
> L_Tmp20, L2_12_output_size, L1_net_param);
>
>
As you can see there are some empty brackets that have caused these
errors. It wasn't a big deal to me as removing the empty brackets fixed
the problem and it ran fine but is there somewhere I should post this? I
don't assume anyone else has seen this before? Maybe im doing something
wrong that caused it. If anyone wants I can post more details about it but
I doubt it would be anyone's priority. Thanks for helping me with my
questions by the way! Lush works very well!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20121206/0609125c/attachment.html>
More information about the GiNaC-list
mailing list