Re: Linux C header files on Windows?

From: Keith Thompson (kst-u_at_mib.org)
Date: 03/23/04


Date: Tue, 23 Mar 2004 00:53:54 GMT


"Ahmed S. Badran" <a_badran@hotmail.com> writes:
> Is it possible to do linux development on Windows platform (to make use of
> editors and such)? The main problem I'm facing is that I'm not sure if there
> are 'linux' header files that I can have on windows. I've been told about
> cygwin but then going quickly through its documentation I noticed it's a
> windows port of the unix environment but not the header files. Basically
> what I want is to have all the C/C++ header files of linux on windows.

This is pretty much off-topic; take my answer with a grain of salt,
and consider it mostly as a vague pointer to more accurate
information. The comp.lang.c crowd in general can't be expected to
correct the inevitable mistakes I'll make in talking about Windows,
Cygwin, Linux, gcc, etc. (though they're very good at correcting my
equally inevitable C mistakes).

One approach you might consider is simply to install Cygwin and do
your development in that environment. (I'm assuming you can use your
Windows IDE with Cygwin.) The Cygwin environment, if you install it
will all the available options, does include gcc and a full set of
header files. The environment is very similar, but not identical, to
Linux.

When you're ready, you can copy your code to a Linux system and build
it there. You may run into some Cygwin/Linux incompatibilities; if
so, consider modifying your code so it works under both environments.
Do this fairly often as you're developing the code, so you find errors
as early as possible.

On the other hand, if the code you want to develop is going to be so
Linux-specific that it's not worth it to make it work under Cygwin as
well, this approach may not work.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center             <*>  <http://users.sdsc.edu/~kst>
Schroedinger does Shakespeare: "To be *and* not to be"


Relevant Pages

  • Re: Using PHP to parse specific XML tag content?
    ... XML --> HTML transformation in testing environment. ... run just fine under Windows using Cygwin, and, unless I'm ... And they aren't going to run cygwin on these systems, ... It's a programming language designed ...
    (comp.lang.php)
  • Re: Which JVM to use under Windows?
    ... "Home users" are using Windows. ... Why on earth would you be coding Java using an obsolete ... Microsoft's environment from the day one, ... Linux, and what I found is that they are clunky. ...
    (comp.lang.java.programmer)
  • Re: Hilfe =?iso-8859-1?b?Zvxy?= Linux-Fans unter Windows
    ... > cygwin gehört, aber mir scheint das etwas schwer zu installieren - lasse ... Cygwin ist ein Unix look and feel aber es de facto ein native Windows ... Beim kompilieren von Paketen etwa halb so schnell wie CoLinux. ... CoLinux ist native Linux in einem Windows Fenster. ...
    (de.comp.os.unix.linux.misc)
  • Re: Want to sell my Dell
    ... Cygwin is also a useful add-on for Windows because it allows you to run some ... Windows menu that drives the CD/DVD burning software built into Linux. ... Want to change the creation time of all your new photos to the time that the ...
    (alt.sys.pc-clone.dell)
  • Re: I just want to browse my network!
    ... This kind of issues were around still when I started using Linux. ... system are easyer than in most OS's (specially in Windows), ... system is missing libraries that it needs and install them autamtically too. ... easyest install I would have had desktop environment and the servers installed ...
    (alt.os.linux)