This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A few questions.


Sven.Wastlund@epkadm.epk.ericsson.se (Sven Wastlund) writes:
> I am porting a program from UNIX to NT.
> 
> 1. When I try to link with libc.a I get multiple defenitions of 'environ' and
>  '_impure_ptr', one defined in libc.a and the other in libcygwin.a. Does anyb
> ody know what to do? 
> Does libc.a use libcygwin.a ?

Don't explicitly link libc.a; it's all in libcygwin.a, which is the import
library for the runtime. Just leave out any explicit -lc.

> 2. Which cygwin library should I use when working with sockets, I meen when y
> ou port a program from UNIX to NT that uses sockets.

Just use libcygwin.a.

> 3. Has anybody ported a program from UNIX that uses RPC, and if so what packa
> ge did you use?

Search the mailing list for mention of ONC RPC.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com