This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: OpenGL: Linker errors when trying to compile w/GLUI
- From: Brian Dessent <brian at dessent dot net>
- To: godescbach <godescbach at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Fri, 16 May 2008 01:13:52 -0700
- Subject: Re: OpenGL: Linker errors when trying to compile w/GLUI
- References: <942354.46333.qm@web82803.mail.mud.yahoo.com>
- Reply-to: 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/