delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/12/12:33:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: "Braden McDaniel" <braden DOT n DOT mcdaniel AT saic DOT com>
Subject: Linking with OpenGL, glut
Date: Tue, 12 Nov 2002 12:08:23 -0500
Lines: 49
Message-ID: <aqrcvl$n3e$1@main.gmane.org>
NNTP-Posting-Host: mica.lnk.com
X-Trace: main.gmane.org 1037121334 23662 198.116.32.42 (12 Nov 2002 17:15:34 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Tue, 12 Nov 2002 17:15:34 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

I'm having some trouble with the directions in README.txt in the OpenGL
docs. They indicate one should use "-lopengl32"; however, that's not working
for me. Here is the excerpt from my config.log:

---
configure:16198: gcc -o conftest.exe -g -O2 -I/usr/X11R6/include
conftest.c -lopengl32 -L/usr/X11R6/lib  -lm  >&5
/cygdrive/c/DOCUME~1/Braden/LOCALS~1/Temp/ccef6CMT.o(.text+0x1d): In
function `main':
/home/Braden/src/openvrml/openvrml/BUILD/configure:16190: undefined
reference to `_glBegin'
collect2: ld returned 1 exit status
configure:16201: $? = 1
configure: failed program was:
#line 16170 "configure"
#include "confdefs.h"

# ifdef _WIN32
#   include <windows.h>
# endif
# ifdef HAVE_OPENGL_GL_H
#   include <OpenGL/gl.h>
# else
#   include <GL/gl.h>
# endif

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
glBegin(0)
  ;
  return 0;
}
---

There's a similar problem with using -lglu32. However, -lGL works and -lGLU
works. So I wouldn't be complaining at all if I could figure out how to link
with glut. Neither "-lglut32 -lGLU -lGL" nor "-lglut -lGLU -lGL" works. Any
ideas?

Braden





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019