I
I
Ilya Kaznacheev2015-01-18 13:28:56
linux
Ilya Kaznacheev, 2015-01-18 13:28:56

Problem with importing libraries for arduino. How to import something that the arduino compiler does not see?

Arduino guru, newbie question.
When compiling sources through the arduino (1.0) program, an error occurs when importing libraries:

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Errors of the following type:
test_sketch_15012015.cpp:4:23: fatal error: sys/types.h: No such file or directory
compilation terminated.

est_sketch_15012015.cpp:5:22: fatal error: sys/stat.h: No such file or directory
compilation terminated.

In file included from test_sketch_15012015.cpp:6:0:
/home/username/Documents/arduino/libraries/ArduinoParty/fcntl.h:27:22: fatal error: features.h: No such file or directory
compilation terminated.

When compiling on a computer, there are no such problems, these are either in the system.
I tried to manually add these files to the sketch, but a thousand and one dependencies follow them, the logical conclusion for me was that there is a more correct way.
OS Linux Mint 13
Program arduino 1.0 (from turnip)
Arduino Mega 2560 board
How can I solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zenx, 2015-01-18
@Zenx

The fcntl.h file should be located in the /home/username/Documents/arduino/libraries/ArduinoParty folder.
For other files, you need to create the appropriate folder and call them from the program directly #include

C
charly_one, 2015-11-11
@charly_one

Hello Ilya, did you solve this problem, "The problem with importing libraries for arduino. How to import something that the arduino compiler does not see?"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question