Cannot compile with MinGW #3

Closed
opened 2024-01-25 19:14:04 +03:00 by nakidai · 1 comment

Output when compile through make

cc -c -o obj/main.o src/main.c  -Iinclude
cc -c -o obj/screen.o src/screen.c  -Iinclude
cc -c -o obj/input.o src/input.c  -Iinclude
cc -c -o obj/player.o src/player.c  -Iinclude
cc -c -o obj/sleep.o src/sleep.c  -Iinclude
src/sleep.c: In function ‘getMS’:
src/sleep.c:6:5: warning: implicit declaration of function ‘timespec_get’ [-Wimplicit-function-declaration]
    6 |     timespec_get(&ts, TIME_UTC);
      |     ^~~~~~~~~~~~
src/sleep.c:6:23: error: ‘TIME_UTC’ undeclared (first use in this function)
    6 |     timespec_get(&ts, TIME_UTC);
      |                       ^~~~~~~~
src/sleep.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:18: obj/sleep.o] Error 1
Output when compile through make ``` cc -c -o obj/main.o src/main.c -Iinclude cc -c -o obj/screen.o src/screen.c -Iinclude cc -c -o obj/input.o src/input.c -Iinclude cc -c -o obj/player.o src/player.c -Iinclude cc -c -o obj/sleep.o src/sleep.c -Iinclude src/sleep.c: In function ‘getMS’: src/sleep.c:6:5: warning: implicit declaration of function ‘timespec_get’ [-Wimplicit-function-declaration] 6 | timespec_get(&ts, TIME_UTC); | ^~~~~~~~~~~~ src/sleep.c:6:23: error: ‘TIME_UTC’ undeclared (first use in this function) 6 | timespec_get(&ts, TIME_UTC); | ^~~~~~~~ src/sleep.c:6:23: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makefile:18: obj/sleep.o] Error 1 ```
Poster
Owner

Sometime I'll fix it.

Sometime I'll fix it.
nakidai referenced this issue from a commit 2024-02-23 17:12:48 +03:00
nakidai added reference fix-mingw 2024-02-23 17:22:09 +03:00
nakidai removed reference fix-mingw 2024-02-23 17:22:16 +03:00
nakidai referenced this issue from a commit 2024-03-06 23:56:11 +03:00
nakidai referenced this issue from a commit 2024-03-07 00:16:26 +03:00
nakidai referenced this issue from a commit 2024-03-07 00:16:26 +03:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nakidai/csnake#3
There is no content yet.