Skip to content

implicit declaration of function 'nanosleep' #176

@waterbug

Description

@waterbug

Compilation error:

gcc -std=c11 -g -O0 -fpic -Wall -Wshadow -Wno-deprecated -Wno-unused-variable -Wno-unused-but-set-variable -Wno-stringop-overread -I /usr/include/GL/ -I ./Include/ -I ./Kit/Include/ -I ./Kit/Source/ -D ENABLE_GUI -D USE_GLUT -D USE_SHADERS -c ./Source/42exec.c -o ./Object/42exec.o
./Source/42exec.c: In function 'AdvanceTime':
./Source/42exec.c:117:13: error: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
117 | nanosleep(&SleepDuration,NULL);
| ^~~~~~~~~
make: *** [Makefile:259: Object/42exec.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions