public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: godescbach <godescbach@yahoo.com>
To: cygwin@cygwin.com
Subject: OpenGL: Linker errors when trying to compile w/GLUI
Date: Fri, 16 May 2008 08:14:00 -0000	[thread overview]
Message-ID: <942354.46333.qm@web82803.mail.mud.yahoo.com> (raw)


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@escher_notebook /usr/share/doc/opengl-1.1.0/GLUIexamples/Cygwin
$ view /usr/share/doc/Cygwin/opengl-1.1.0-8.README

godescbachM@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/

             reply	other threads:[~2008-05-16  7:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16  8:14 godescbach [this message]
2008-05-16 15:27 ` Brian Dessent
2008-05-16 15:27 André Bleau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=942354.46333.qm@web82803.mail.mud.yahoo.com \
    --to=godescbach@yahoo.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).