Function 'sleep' could not be resolved [message #1013794] |
Sun, 24 February 2013 10:12 |
jo fe Messages: 1 Registered: February 2013 |
Junior Member |
|
|
Hello,
I'm trying to compile a c++ project for ARM (Beaglebone). Therefor I'm using Eclipse Indigo,Ubuntu and installed arm-gnueabi-linux. When i try to build the project I get the following error:
**** Build of configuration Debug for project BMA020Grabber ****
make all
Building file: ../src/BMA020Grabber.cpp
Invoking: GCC C++ Compiler
arm-linux-gnueabi-g++ -I/usr/arm-linux-gnueabi/include/c++/4.6.3 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/BMA020Grabber.d" -MT"src/BMA020Grabber.d" -o "src/BMA020Grabber.o" "../src/BMA020Grabber.cpp"
../src/BMA020Grabber.cpp: In Funktion »int main()«:
../src/BMA020Grabber.cpp:17:24: Warnung: veraltete Konvertierung von Zeichenkettenkonstante in »char*« [-Wwrite-strings]
../src/BMA020Grabber.cpp:26:10: Fehler: »sleep« wurde in diesem Gültigkeitsbereich nicht definiert
make: *** [src/BMA020Grabber.o] Fehler 1
**** Build Finished ****
Fehler: »sleep« wurde in diesem Gültigkeitsbereich nicht definiert --> Function 'sleep' could not be resolved
But if I store the .cpp file on the Beaglebone and compile it there it works.
I tried to restart eclipse, rebuild the index, clean the project but nothing works.
Thanks for the help!
|
|
|
Powered by
FUDForum. Page generated in 0.02223 seconds