Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 16 Jul 2002 17:25:29 -0500 From: "Jonathan E. Brickman" X-Priority: 3 (Normal) Message-ID: <1021755801.20020716172529@gmx.net> To: cygwin AT cygwin DOT com Subject: Re[2]: Cannot find setgroups()? In-Reply-To: <20020716155741.R6932@cygbert.vinschen.de> References: <142458519 DOT 20020715174949 AT gmx DOT net> <161269976 DOT 20020716103137 AT logos-m DOT ru> <1792337422 DOT 20020716072927 AT gmx DOT net> <20020716155741 DOT R6932 AT cygbert DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >> bigger problem. My purpose for using 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/