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: From: "Sisyphus" To: "cygwin" Subject: resolving _glGetString AT 4 by linking to _glGetString Date: Sun, 11 Jul 2010 13:44:10 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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, 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