I have solved the problem with STL includes.

The INCLUDEPATH+=/usr/include line should be removed, but this path should be added to Tools->Options->C++->File Naming->Search Paths (add /usr/include).

For SPI header linux/ioctl.h must be changed to sys/ioctl.h like in original spidev_test.c.

After this modification I successfully tested SPI but now I am facing other problems with it. I can not call close() function and I can not change spidev1.0 mode to 1. I know that this is not a topic for this forum, so I will ask it somewhere elese but if someone has any ideas about my problem, please write.

Best regards.