Ask coding questions

← Back to all posts
windows.h is not in the file library
cordedmicorbe72

I am doing this project for school and I need to access the windows.h library. However, repl.it doesn't recognize this library. What should I do?
(c++)

Answered by theangryepicbanana [earned 5 cycles]
View Answer
Voters
JuanEsDiaz17
AlexCtheWriter
MATHyou
cordedmicorbe72
Comments
hotnewtop
theangryepicbanana

What do you need the library for?

cordedmicorbe72

@theangryepicbanana
I need to make sounds. Like Beep(329, 6000);

theangryepicbanana

@cordedmicorbe72 You can't actually make sounds in repls

PawelBzm

Instead <windows.h> write <unistd.h>
This is for linux and it helped me with command "sleep"

SixBeeps

repl.it runs on linux, so you won't have access to windows.h
sorry, you're gonna need to do this with your own install of c++.