Welcome! Log In Create A New Profile

Advanced

marlin compile error. too many initializers

Posted by friarfish 
marlin compile error. too many initializers
August 23, 2015 02:59AM
Hi folks,
just starting compiling marlin for the first time when I'm getting these rather esoteric errors.
I've googled them and was only able get some answers on C/C++ sites that were rather
"difficult" to understand.
All help appreciated.

Marlin_main.cpp:217: error: too many initializers for 'int [0]'
};
^
Marlin_main.cpp:226: error: too many initializers for 'float [0]'
};
^
Marlin_main.cpp:234: error: too many initializers for 'float [0]'
};

Oh, I'm using marlin 1.0.2 with arduino ide 1.6.5. I tried ide 1.0.6 and had the same issue.

Many thanks,
Andrew
Re: marlin compile error. too many initializers
August 23, 2015 04:40AM
This looks like you have EXTRUDERS defined to be 0 in your Configuration.h.
Re: marlin compile error. too many initializers
August 23, 2015 06:26AM
Hi enif,
thanks for the info.
about an hour after I posted this I realised myself I had set extruders to 0.
I was just about to delete this post.

I blame too many hours banging my head against the printer.


Andrew
Re: marlin compile error. too many initializers
December 11, 2015 11:59AM
I have almost the same error but I have set the number of my extruders to 2 as I have a dual extruder 3D printer smiling smiley

The error that shows up is the following:

sketch\Marlin_main.cpp:962:1: note: in expansion of macro 'XYZ_CONSTS_FROM_CONFIG'

XYZ_CONSTS_FROM_CONFIG(float, base_home_pos, HOME_POS);

^

exit status 1
too many initializers for 'float [3]'


If anyone could help me I would appreciate it a lot smiling bouncing smiley
Attachments:
open | download - Arduino Problem001.PNG (26.9 KB)
Sorry, only registered users may post in this forum.

Click here to login