Re: linux to windows porting help
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Mon, 05 Jun 2006 15:04:37 +0000
vamsi said:
Hi guys,
I am working on a project that involves porting c programs from
linux environment to windows environment.
You're going the wrong way, surely? :-)
It would be great if anyone
could provide references on getting an overview on the pre-requisite
knowledege one should have to do a smooth porting.
You might be in luck. The program might have been written to conform to ISO
C. If so, all you have to do is move the code over and re-compile.
Alas, you are probably not in luck. If the program uses GTK+, you can at
least get a Win32 port of that.
Networking stuff won't be too hard to port if it's been done right. Replace
all the networking headers with <winsock.h>, add the relevant sockets
library (I forget the name, but comp.os.ms-windows.programmer.win32 will
know) to your project, replace socket-closing close() calls with
closesocket(), change socket objects from int type to SOCKET type, add a
WSAStartup call, and you're about there.
For POSIX stuff, well, much of it is already supported in Windows, but by no
means all. If your Linux app forks, you could be in for a creative time!
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: linux to windows porting help
- From: Randy Howard
- Re: linux to windows porting help
- References:
- linux to windows porting help
- From: vamsi
- linux to windows porting help
- Prev by Date: Re: What is best searching algorithm for URL
- Next by Date: Re: Need help design Algorithm or the database for the scheduling task application
- Previous by thread: linux to windows porting help
- Next by thread: Re: linux to windows porting help
- Index(es):
Relevant Pages
|