I'm having some trouble with my Eclipse.
I've included the library into my project. The Cross GCC compiler seems to compile everything pretty well.
Console output:
14:37:50 **** Incremental Build of configuration Debug for project DomoHome2 ****
make all
Building target: DomoHome2
Invoking: Cross G++ Linker
arm-none-linux-gnueabi-g++ -o "DomoHome2" ./BV4618.o ./Database.o ./main.o - lmysqlclient -lwiringPi -lz -ldl -lpthread
Finished building target: DomoHome2
14:37:51 Build Finished (took 114ms)
But eclipse still shows these errors:
Type 'thread' could not be resolved BV4618.cpp /DomoHome2 line 235 Semantic Error
I've tried many solutions like refreshing the indexer files, or changing the code analysis but i'm still getting this annoying error. What should I do?
Solved following these instructions:
Right click your project and click Properties Under C/C++ General click "Preprocessor Include Paths, Macros" Select the Providers tab There should be an item in the list that says something like "GCC Built in Compiler Settings". Select this entry. Uncheck the "Use global provider..." option Under the list there's an box that says "Command to get compiler specs." Append "-std=c++0x" to this. Click Apply and then OK. Back in your Eclipse workspace, select the Project Menu, C/C++ Index, and click *"Re-resolve unresolved includes."
*Rebuild the Indexer files before doing it