
Originally Posted by
high_flyer
Your problem does not seem to be an issue with SPI but with your STL includes.
Try using the form:
//#include <stdint.h>
//#include <unistd.h>
//#include <stdio.h>
//#include <stdlib.h>
//#include <getopt.h>
//#include <fcntl.h>
#include <stdint>
#include <unistd>
#include <stdio>
#include <stdlib>
#include <getopt>
#include <fcntl>
//#include <stdint.h>
//#include <unistd.h>
//#include <stdio.h>
//#include <stdlib.h>
//#include <getopt.h>
//#include <fcntl.h>
#include <stdint>
#include <unistd>
#include <stdio>
#include <stdlib>
#include <getopt>
#include <fcntl>
To copy to clipboard, switch view to plain text mode
And see if it helps.
Thank you for your reply.
I have tried your solution but then I have got following error:
In file included from ../MyApp/main.cpp:1:0:
stdint: No such file or directory
In file included from ../MyApp/main.cpp:1:0:
stdint: No such file or directory
To copy to clipboard, switch view to plain text mode
I agree that the problem is with including standard headers but I do not know how to resolve this issue.
Did I correctly write line in .pro file?
INCLUDEPATH+=/usr/include
INCLUDEPATH+=/usr/include
To copy to clipboard, switch view to plain text mode
Bookmarks