Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Function 'sleep' could not be resolved
Function 'sleep' could not be resolved [message #1013794] Sun, 24 February 2013 10:12
jo fe is currently offline jo feFriend
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!
Previous Topic:Breakpoint attribute problem: installation failed (only for some lines!)
Next Topic:Problems on compiling source file
Goto Forum:
  


Current Time: Tue Apr 23 11:41:18 GMT 2024

Powered by FUDForum. Page generated in 0.02223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top