OpenGL: Linker errors when trying to compile w/GLUI

Brian Dessent brian@dessent.net
Fri May 16 15:27:00 GMT 2008


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/



More information about the Cygwin mailing list