Problème à la compilation

Bonjour,
Je souhaite utiliser la fonction sleep() mais il y a une erreur à la compilation. Ci-dessous le code source :
#include
int main(void) {
sleep(2000);
}
Le message d'erreur est le suivant :
$ make
nspire-gcc -Os -Wall -W -c toutnoir.c
toutnoir.c: In function 'main':
toutnoir.c:5:1: warning: control reaches end of non-void function
nspire-ld -nostdlib toutnoir.o -o toutnoir.elf
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: c:/ti/ndless20/sdk/bin/../liblibndls.a(sleep.o): Unknown mandatory EABI object attribute 44
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ti/ndless20/sdk/bin/../liblibndls.a(sleep.o)
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: c:/ti/ndless20/sdk/bin/../liblibndls.a(idle.o): Unknown mandatory EABI object attribute 44
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ti/ndless20/sdk/bin/../liblibndls.a(idle.o)
collect2: ld returned 1 exit status
make: *** [toutnoir.tns] Error 1
Ci dessous le makefile pour information :
GCC = nspire-gcc
LD = nspire-ld
GCCFLAGS = -Os -Wall -W
LDFLAGS = -nostdlib
OBJCOPY := "$(shell which arm-elf-objcopy 2/dev/null)"
ifeq (${OBJCOPY},"")
OBJCOPY := arm-none-eabi-objcopy
endif
EXE = hexeditor.tns
OBJS = hexeditor.o
DISTDIR = ../../calcbin/samples
vpath %.tns $(DISTDIR)
all: $(EXE)
%.o: %.c
$(GCC) $(GCCFLAGS) -c $
$(EXE): $(OBJS)
$(LD) $(LDFLAGS) $^ -o $(@:.tns=.elf)
mkdir -p $(DISTDIR)
$(OBJCOPY) -O binary $(@:.tns=.elf) $(DISTDIR)/$@
clean:
rm -f *.o *.elf
rm -f $(DISTDIR)/$(EXE)
Ca ne marche plus depuis que je suis passé à ndless2.0. J'ai le même genre d'erreur avec la fonction wait_key_pressed(void)
Quelqu'un pourrait t'il m'éclairer ?
Je souhaite utiliser la fonction sleep() mais il y a une erreur à la compilation. Ci-dessous le code source :
#include
int main(void) {
sleep(2000);
}
Le message d'erreur est le suivant :
$ make
nspire-gcc -Os -Wall -W -c toutnoir.c
toutnoir.c: In function 'main':
toutnoir.c:5:1: warning: control reaches end of non-void function
nspire-ld -nostdlib toutnoir.o -o toutnoir.elf
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: c:/ti/ndless20/sdk/bin/../liblibndls.a(sleep.o): Unknown mandatory EABI object attribute 44
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ti/ndless20/sdk/bin/../liblibndls.a(sleep.o)
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: c:/ti/ndless20/sdk/bin/../liblibndls.a(idle.o): Unknown mandatory EABI object attribute 44
c:/ti/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/ti/ndless20/sdk/bin/../liblibndls.a(idle.o)
collect2: ld returned 1 exit status
make: *** [toutnoir.tns] Error 1
Ci dessous le makefile pour information :
GCC = nspire-gcc
LD = nspire-ld
GCCFLAGS = -Os -Wall -W
LDFLAGS = -nostdlib
OBJCOPY := "$(shell which arm-elf-objcopy 2/dev/null)"
ifeq (${OBJCOPY},"")
OBJCOPY := arm-none-eabi-objcopy
endif
EXE = hexeditor.tns
OBJS = hexeditor.o
DISTDIR = ../../calcbin/samples
vpath %.tns $(DISTDIR)
all: $(EXE)
%.o: %.c
$(GCC) $(GCCFLAGS) -c $
$(EXE): $(OBJS)
$(LD) $(LDFLAGS) $^ -o $(@:.tns=.elf)
mkdir -p $(DISTDIR)
$(OBJCOPY) -O binary $(@:.tns=.elf) $(DISTDIR)/$@
clean:
rm -f *.o *.elf
rm -f $(DISTDIR)/$(EXE)
Ca ne marche plus depuis que je suis passé à ndless2.0. J'ai le même genre d'erreur avec la fonction wait_key_pressed(void)
Quelqu'un pourrait t'il m'éclairer ?