944,139 Members | Top Members by Rank

Ad:
Mar 14th, 2006
0

How can i do unix c programs in turbo c editor in windows

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
harrypotter is offline Offline
18 posts
since Feb 2006
Mar 14th, 2006
0

Re: How can i do unix c programs in turbo c editor in windows

Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Mar 18th, 2006
0

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
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006
Mar 18th, 2006
0

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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Mar 18th, 2006
0

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
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Truth Table
Next Thread in Computer Science Forum Timeline: HD faced Problems





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC