I am making a program in C that uses ncurses in linux.
I want it to write a the that I can run on windows.
Is there any ncurses lib on turbo c compiler.
Ncurses for windows
Started by chax, Apr 27 2007 08:26 PM
1 reply to this topic
#1
Posted 27 April 2007 - 08:26 PM
|
|
|
#2
Posted 27 April 2007 - 09:59 PM
I don't think it's possible to use ncurses in Windows at all.
Maybe some multiplatform programming would be better?
It's easy, but it requires that you know alot about both Windows and Linux (or some other operating system). It can easily be done, only using the preprocessors.
Maybe some multiplatform programming would be better?
It's easy, but it requires that you know alot about both Windows and Linux (or some other operating system). It can easily be done, only using the preprocessors.
#include <iostream>
#if defined(__linux__)
// Include Linux-libraries
#elif defined(_WIN32)
// Include Windows-libraries
#else
#error Not supported platform/OS // Or something else here
#endif
int main()
{
#if defined(__linux__)
// Do something with Linux-libraries
#elif defined(_WIN32)
// Do something with Windows-libraries
#endif
return 0;
}


Sign In
Create Account


Back to top









