Skip to content

Precompiler does not put function declarations near top #4278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hpvanriemsdijk opened this issue Dec 9, 2015 · 1 comment
Closed

Precompiler does not put function declarations near top #4278

hpvanriemsdijk opened this issue Dec 9, 2015 · 1 comment
Assignees
Milestone

Comments

@hpvanriemsdijk
Copy link

When, for example, I try to compile the example "ColorPalette" from the Fastled libary on my teensy 3.2 using arduino IDE 1.6.6 + TeensyDuino 1.26, I get the following errors:

Arduino: 1.6.6 (Windows 10), TD: 1.26, Board:"Teensy 3.2 / 3.1, Serial, 96 MHz optimized (overclock), US English"

In file included from D:\4.Development\1. Arduino\libraries\FastLED\examples\ColorPalette\ColorPalette.ino:1:0:
D:\4.Development\1. Arduino\libraries\FastLED/FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3001000  (Not really a warning, just telling you here.)
^
D:\4.Development\1. Arduino\libraries\FastLED\examples\ColorPalette\ColorPalette.ino: In function 'void loop()':
ColorPalette:50: error: 'ChangePalettePeriodically' was not declared in this scope
ChangePalettePeriodically();
^
ColorPalette:55: error: 'FillLEDsFromPaletteColors' was not declared in this scope
FillLEDsFromPaletteColors( startIndex);
^
D:\4.Development\1. Arduino\libraries\FastLED\examples\ColorPalette\ColorPalette.ino: In function 'void ChangePalettePeriodically()':
ColorPalette:90: error: 'SetupPurpleAndGreenPalette' was not declared in this scope
if( secondHand == 20)  { SetupPurpleAndGreenPalette();             currentBlending = LINEARBLEND; }
^
ColorPalette:91: error: 'SetupTotallyRandomPalette' was not declared in this scope
if( secondHand == 25)  { SetupTotallyRandomPalette();              currentBlending = LINEARBLEND; }
^
ColorPalette:92: error: 'SetupBlackAndWhiteStripedPalette' was not declared in this scope
if( secondHand == 30)  { SetupBlackAndWhiteStripedPalette();       currentBlending = NOBLEND; }
^
ColorPalette:93: error: 'SetupBlackAndWhiteStripedPalette' was not declared in this scope
if( secondHand == 35)  { SetupBlackAndWhiteStripedPalette();       currentBlending = LINEARBLEND; }

Based on research (Fastled Issue) by the maintainer of the Fastled Libary it seems the Precompiler does not put function declarations near top for Teensy, Arduino Zero and Arduino Due.

@ffissore
Copy link
Contributor

ffissore commented Dec 9, 2015

This issue was moved to arduino/arduino-builder#81

@ffissore ffissore closed this as completed Dec 9, 2015
@ffissore ffissore modified the milestone: Release 1.6.7 Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants