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
(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);