Re: [cc65] Compiling

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-09-15 11:38:55


On Sat, Sep 15, 2001 at 01:38:47AM +0200, Maciej Witkowiak wrote:
> I have three posibilities: at turn this off, rewrite to winsock or find
> something that will have socket/accept/bind etc. inside. I'm not familiar with
> winsock (maybe it is similar to BSD sockets). I would like to have it without
> major changes in sources. Cygwin is too big for me. Is mingw a solution?

Slightly off topic, maybe we should discuss this in private mail, but...

...compiling for winsock is usually not too difficult, since it is a major
subset of the POSIX API. You have to juggle with the headers (with winsock,
you just include one header file), with some types, and (greatest problem)
with the error codes. Unix uses errno and returns an int while Windows uses
WSAGetLastError() and returns a DWORD. However, all these can be hidden using
a few macro lines.

MingW will probably also use winsock, so it's not really helpful.

Regards


        Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:42 CET