DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Computer Science (http://www.daniweb.com/forums/forum14.html)
-   -   How can i do unix c programs in turbo c editor in windows (http://www.daniweb.com/forums/thread41073.html)

harrypotter Mar 14th, 2006 3:20 am
How can i do unix c programs in turbo c editor in windows
 
Please tell me how to do unix system programming in C in windows.

Is there any c editor which contains all header files required for unix system programming in windows?

Please tell me.
There is a problem in installing linux in my system. but there is a need for me to execute those programs.

so suggest any editor in which i can execute those programs like using fork(), exec() etc.....


Thank You

Narue Mar 14th, 2006 11:36 am
Re: How can i do unix c programs in turbo c editor in windows
 
http://www.cygwin.com/

Lord Soth Mar 18th, 2006 8:03 am
Re: How can i do unix c programs in turbo c editor in windows
 
Hi,

http://www.Mingw.org Download MinGW Developper Studio for no hassle linux development on Windows.

Loren Soth

Narue Mar 18th, 2006 9:20 am
Re: How can i do unix c programs in turbo c editor in windows
 
>Download MinGW Developper Studio for no hassle linux development on Windows.
MinGW only supports what the Windows API supports, and that excludes fork (which was explicitly mentioned by the OP) and many other POSIX features. Cygwin is a POSIX emulator that sits on top of Windows, and is far more faithful to POSIX without forcing you to use Windows alternatives.

Lord Soth Mar 18th, 2006 11:37 am
Re: How can i do unix c programs in turbo c editor in windows
 
Hi,

MinGW do support fork with a self hosting patch (check this post about the subject http://www.computing.net/programming...orum/1041.html) and -ufork switch on gcc without using cygwin. Yet you can also use cygwin from within MinGW if you think it is worth the trouble. Mean while MinGW's main advantage is the independence of Cygwin runtime (cygwin1.dll and other things installer install) and the presence of the Visual IDE called MinGW Dev. Studio.
I have two more recomendations for this subject. One is the use of Dev-C++ Visual IDE which cames with MinGW and a great modular package system (you must give it a try); and if you don't like to mess with all those emulation layers and ports just install Microsoft VirtualPC or VMWare and install/use a Linux from within your Windows. (Just like they use WINE for the same thing from within Linux.)

Loren Soth


All times are GMT -4. The time now is 11:18 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC