delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/10/23:46:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <F72B09204836461FB8C3F550F2838105@desktop2>
From: "Sisyphus" <sisyphus1 AT optusnet DOT com DOT au>
To: "cygwin" <cygwin AT cygwin DOT com>
Subject: resolving _glGetString AT 4 by linking to _glGetString
Date: Sun, 11 Jul 2010 13:44:10 +1000
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Hi,

When building the perl extension OpenGL-0.62 on Cygwin-1.7.5,  gcc-4.3.4 I 
get the warning:

Warning: resolving _glGetString AT 4 by linking to _glGetString
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups

That's exactly what needs to be done, and everything goes fine.
On Cygwin-1.5.25,  gcc-3.4.4, however, running the same procedure I simply 
get the errors:

glversion.o:glversion.c:(.text+0xc5): undefined reference to 
`_glGetString AT 4'
glversion.o:glversion.c:(.text+0xd7): undefined reference to 
`_glGetString AT 4'
glversion.o:glversion.c:(.text+0xe9): undefined reference to 
`_glGetString AT 4'
glversion.o:glversion.c:(.text+0xfb): undefined reference to 
`_glGetString AT 4'

How do I get gcc-3.4.4 to apply those fixups that gcc-4.3.4 applied ?

The actual commands being run in order to build glversion are:

gcc -DWIN32 -DHAVE_FREEGLUT -c glversion.c
followed by
g++ -o glversion glversion.o -L../FreeGLUT -lfreeglut 
/cygdrive/c/WINDOWS/system32/opengl32.dll

I tried inserting '--enable-stdcall-fixup' into the second of those 
commands, but it didn't have any effect.

Cheers,
Rob







--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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