ToadKing / wii-u-gc-adapter

Tool for using the Wii U GameCube Adapter on Linux
MIT License
240 stars 42 forks source link

Missing time.h #52

Closed dustinf1989 closed 3 years ago

dustinf1989 commented 3 years ago

I've installed the prerequisites, and when I run make in the terminal, I get this error, which seems to want a time.h file which is missing:

cc -c -o wii-u-gc-adapter.o wii-u-gc-adapter.c -Wall -Wextra -pedantic -Wno-format -std=c99 -I/usr/include/libusb-1.0 -O2 wii-u-gc-adapter.c:5:10: fatal error: time.h: No such file or directory

include

      ^~~~~~~~

compilation terminated. Makefile:16: recipe for target 'wii-u-gc-adapter.o' failed make: *** [wii-u-gc-adapter.o] Error 1

ToadKing commented 3 years ago

time.h is a part of the C standard library. If that's missing from your system then some important build packages are missing from your system.

What distro are you using?

dustinf1989 commented 3 years ago

Thanks, I didn't know what I was looking for before but I used these commands to get the file and got it working.

sudo apt-get update 
sudo apt-get install build-essential