X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <482D4240.5CB70FAA@dessent.net> Date: Fri, 16 May 2008 01:13:52 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: godescbach CC: cygwin AT cygwin DOT com Subject: Re: OpenGL: Linker errors when trying to compile w/GLUI References: <942354 DOT 46333 DOT qm AT web82803 DOT mail DOT mud DOT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 godescbach wrote: > $ g++ -O2 -mno-cygwin example1.cpp -o example1 -L/usr/lib/w32api -lglui -lglut3 > 2 -lglu32 -lopengl32 > /usr/lib/w32api/libglui.a(glui_spinner.o):glui_spinner.cpp:(.text+0xd): undefine > d reference to `___getreent' This error means you're trying to use a Cygwin library from MinGW (-mno-cygwin). That won't work. If you're going to use MinGW you can't use Cygwin libraries. The above command works fine for me after removing -mno-cygwin. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/