User forums > Using Code::Blocks
conio.h for Windows but not for Linux?
americast:
Hi all,
I have found that the windows version of code::blocks supports the header file <conio.h> and its functions (like getch() etc.). I have also installed a copy in my Linux distro (OpenSUSE 13.1) with GNU GCC G++ (C++) compiler which does not offer support for the same. Is it possible to incorporate conio.h into Linux? This is because some of the programs using conio.h is not working on my Linux system...
Gramercy...
ToApolytoXaos:
You may find why it's not working on GNU / Linux here:
conio.h
americast:
Thanx...
So, how do I get such functions working on my linux system? Is there any alternative? Functions such as getch() and kbhit() are really quite useful...
Gramercy...
ToApolytoXaos:
You should get yourself a C book, preferably an ANSI C one, and learn more about libraries like stdio.h.
For instance, http://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdio.h.html explains things like getchar() and putchar() that do what you want to accomplish that also is POSIX compliant, therefore portable by standard.
americast:
Is it possible to integrate mingw compiler with code blocks in linux?
Gramercy...
Navigation
[0] Message Index
[#] Next page
Go to full version