简体   繁体   中英

Header file not found Error: <conio.h> and <process.h> while compiling in VScode Cmake or Clang++ in macOS Catalina

I've even installed VCpkg for missing Headers from Visual studio but doesn't seem to work. After a bit of research I've found out

unix based systems don't have "process" "conio" Headers

Is it safe to comment out these Headers?

Will my program work fine?

No, I would think that it is not safe to comment them out. If you comment them out you will have some functions in your code that are not defined, and your program won't compile. If you wrote the program I would recommend to look for some libraries that you can use in unix systems. Like ncurses instead of conio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM