Own library, include Arduino.h and other library

Hi,

I want to write my own library using Visual Studio 2017. Created new project, add class, and

#include <C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h>
#include <C:\Users\myAcc\Documents\Arduino\libraries\FastLED\FastLED.h>

so I can use f.e. String and byte here, also the FastLED stuff, all fine.

Problem ist, as soon as I buld the project, I get lots of errors, f.e.:

c:\users\myAcc\documents\arduino\libraries\fastled\platforms\avr\led_sysdefs_avr.h(12): fatal error C1083: Datei (Include) kann nicht geƶffnet werden: "avr/io.h": No such file or directory

There are ~250 errors.

I assume FastLED also wants to get access to arduino files, and including Arduino.h before FastLED is not sufficient.

Any ideas how to handle this problem?

Not sure how many people use Visual Studios with Arduino. But, knowing this product, what I can guess, is that your project configuration is not correct, or you have not set your include libraries correctly.

While you have included Arduino and fastled, I suspect that it does not know how to find the rest of the includes.

I know nothing about how to set up VS to work with Arduino, but i suspect you missed some important step.

Are you using this? Getting Started with Visual Studio and Arduino, if so see if you missed something.