This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenGL: Linker errors when trying to compile w/GLUI


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]