X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-YMail-OSG: QUBxZAMVM1nHiYVPblKNvNInhDfbjvetNoye3pSR266TjFvYC88MVhHox4h2q_g7B9OvBV3UQnFLFpo2kRdIdOvU.BJXJA0bOz2O X-Mailer: YahooMailRC/975.23 YahooMailWebService/0.7.185 Date: Fri, 16 May 2008 00:18:33 -0700 (PDT) From: godescbach Reply-To: godescbach Subject: OpenGL: Linker errors when trying to compile w/GLUI To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <942354.46333.qm@web82803.mail.mud.yahoo.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 Hi, I am trying to compile example1.cpp in /var/share/doc/opengl-1.1.0/GLUIexamples/Cygwin. After trying numerous possibilities, I am at a loss. And there is no information on the web about this specific issue. Please advise. $ uname -a CYGWIN_NT-5.1 escher_notebook 1.5.25(0.156/4/2) 2008-04-17 12:11 i686 Cygwin $ 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' /usr/lib/w32api/libglui.a(glui_spinner.o):glui_spinner.cpp:(.text+0x25): undefin ed reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0x92): undef ined reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0xd9): undef ined reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0x1c7): unde fined reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0x237): more undefined references to `___getreent' follow collect2: ld returned 1 exit status godescbachM AT escher_notebook /usr/share/doc/opengl-1.1.0/GLUIexamples/Cygwin $ view /usr/share/doc/Cygwin/opengl-1.1.0-8.README godescbachM AT escher_notebook /usr/share/doc/opengl-1.1.0/GLUIexamples/Cygwin $ make g++ -c -O2 -mno-cygwin example1.cpp g++ -O2 -mno-cygwin example1.o -L/usr/lib/w32api -lglui -lglut32 -lglu32 -lope ngl32 -o example1 /usr/lib/w32api/libglui.a(glui_spinner.o):glui_spinner.cpp:(.text+0xd): undefine d reference to `___getreent' /usr/lib/w32api/libglui.a(glui_spinner.o):glui_spinner.cpp:(.text+0x25): undefin ed reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0x92): undef ined reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0xd9): undef ined reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0x1c7): unde fined reference to `___getreent' /usr/lib/w32api/libglui.a(glui_edittext.o):glui_edittext.cpp:(.text+0x237): more undefined references to `___getreent' follow collect2: ld returned 1 exit status make: *** [example1] Error 1 -- 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/