-2

I'm in trouble and need help. I just installed the required Devel packages of the cygwin installation in order to run c++. I'm using netbeans as my development environment but I don't know why it can't locate the conio.h header file or am I missing something? thanks in advance

Cels
  • 1,212
  • 18
  • 25
  • 2
    `conio.h` is a system-specific include file for Windows. It's available in the Windows SDK. – tambre Dec 02 '17 at 12:53
  • Thanks. Please, how then should I include it in my project? I'm running windows 8.1 – Cels Dec 02 '17 at 12:56
  • 2
    Why do you use cygwin? –  Dec 02 '17 at 12:57
  • Because I was advised to do so. I'm new to c++ – Cels Dec 02 '17 at 12:58
  • 2
    Cygwin is not C++. Why where you advised to use it? –  Dec 02 '17 at 12:59
  • Because it contains the Devel packages which contains the g++ compiler, make utility and the gdb debugger. Uhm! please am I missing something? – Cels Dec 02 '17 at 13:04
  • 2
    Those are all utilities that are used for compiling Linux-based applications that run on Windows. You can't easily switch it to use Windows-based standard library, headers, object files and more - they're designed to explicitly not be able to do that. The easiest solution would be to get the latest [Visual Studio Community](https://www.visualstudio.com/de/vs/community/). As an additional recommendation, you may want to update your computer to a more recent OS such as Windows 10 1709. – tambre Dec 02 '17 at 13:09
  • A million Thanks @tambre – Cels Dec 02 '17 at 13:13
  • 3
    Cygwin is used to run Linux programs on Windows. But `` indicates that you already have a Windows (or DOS really) program, and now sort of try to run a Windows program on Linux (on Windows). Makes it a bit backwards. – Bo Persson Dec 02 '17 at 13:13

1 Answers1

1

Cygwin is designed to let you run Linux programs on Windows. This is also often used for one to be able to use Linux development tools.

conio.h is a C header file, which declares a few I/O functions available only on Windows. It's part of the Windows SDK. Cygwin is not designed to be able to link Windows object files or be able to use WinAPI - it's designed to do the exact opposite.

The easiest way for you to do development on Windows is to use Visual Studio. Make sure to install C++ support and the Windows SDK during installation.

tambre
  • 4,625
  • 4
  • 42
  • 55