On Sat, Aug 05, 2000 at 11:17:02AM +1000, Alex Salmon wrote:
> hi all
> i have made a nice lil c program that uses 
> 
> #include <stdio.h>
> #include <sys/types.h>
> #include <sys/socket.h>
> #include <netinet/in.h>
> 
> It compiles and works nicly in linux with gcc, I am trying to run the prog
> in win but i am having a little bit of trouble compiling it.
> 
> I have borrowed borland c++ 5 from a friend to see if it could compile but
> it dosent seem to have any of the headers i need especially socket etc. -
> can a c++ compiler just compile c like it is native?
> 
> the Question is-- is sys/socket.h a *nix only thing or shoud i be able to
> compile it in win? is there a way to compile progs for win in linux?  And
> is there any free way of doing the above as my budget goes from about 0 to
> 0 ;-)

either go for cygwin (as jeff suggested), or if even thats too much of
an impediment to development, go for a cross compiler like "gcc-win"
(on freshmeat)

-- 
 - Gus


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to