Cannot find setgroups()?

Jonathan E. Brickman jonathan.brickman@gmx.net
Tue Jul 16 17:23:00 GMT 2002


>> bigger problem.  My purpose for using <lmaccess.h> was for
>> setgroups().  And when I compile this code:
>> [...]
>> undefined reference to `setgroups'
>> collect2: ld returned 1 exit status

> setgroups() doesn't exist in Cygwin.  However, I don't understand
> what a POSIX function has to do with a native Windows header.

Oops.  My mistake.  lmaccess.h (part of the w32api set) contains
netusersetgroups, which I mistook for setgroups.

-- 
Jonathan E. Brickman    http://joshuacorps.org
Live forever.  If you don't know how, or aren't sure,
please ask, and I will tell you.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list