Vs code problem in manjaro

I just hopped to manjaro few days ago, and had so work with coding. So, i just installed vs code. When i try to run header files like conio.h, 2 error messages #include errors detected and cannot open source file conio.h occur. So, plz help

Please provide the errors. Nobody here can guess what your issue is. Make sure to follow [HowTo] Provide System Information

Did you read the provided link?

Just reading about conio.h … it seems:

That leads to here

After installing as you said, I am still getting error for functions like getch(), strrev. Please help

I’m not much of a programmer and I haven’t used C/C++ for quite a while, however:

  1. strrev doesn’t exist on linux. See link below.

  2. As the compiler says gets() is dangerous, don’t use it. See link below.

  3. There are several functions in conio.h that are meant to return a value but don’t, getch() is one of them. This just produces a warning, still compiles here.

  4. You seem to be using C, conio.h uses classes and as such needs to be c++, at least I can’t compile with gcc, but I can with g++. Perhaps I’m missing something.

  5. You’re not even using conio.h.

All mentions of conio.h refer to the linux version linked above. (I’ve not seen any other)



Why are you creating another thread?


Neither the distribution nor vscode is to blame here.
A simple search with the internet search engine of you choice gives you the answer right away.
You’re better off on a C programming forum with your questions.

1 Like

What’s your “book”? Is it vscode terminology, because I don’t use vscode. :man_shrugging:

The code you’ve shown us is a complete program (from a basic tutorial that doesn’t work on linux) which doesn’t use or even include conio.h bruh… :grin:

No getch() either. :slight_smile:

1 Like

hello, m from Nepal. I do’nt know, but all the programs in my book have conio.h header.
About VS code, its nothing but my obsession to use it coz back in windows i was familiar with it.
Apart from those queries, i have small request to ask. Since I am very new to this interface, would you mind suggesting me any sort of reference(yt channel, forum pg or website) for getting a better idea on the file system, types, properties, basic terminal code structures and so on?
Thank You