View Single Post
  #3 (permalink)  
Old October 14th, 2003, 05:37 PM
merediths merediths is offline
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default

MAtkins,


 C code will only be portable if you use the ANSI/ISO subset of the language, which should be portable given you have an ANSI/ISO compliant compiler. It looks like a number of the header files you are using are system headers that are OS dependant, however a number of third party libraries and utilities are available for porting from window to unix.
 I recommend using Cygwin, which is what I use ( though their are a number of Open Source/ Commercial products on the market). Check out http://www.cygwin.com/ -- that should get you pointed in the right directions.

Regards,
Meredith Shaebanyan


Quote:
quote:Originally posted by MAtkins
 Hi:

I understand that C is portable if compiled for the OS.

I'm trying to use code that includes these:
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <err.h>

These are Linux files that apparantly depend on a Linux OS w/ Linux functionality.

I'm guessing that this code is not executable in Windows?
How can I make it executable in Windows?

Reply With Quote