From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32617 invoked by alias); 28 Jan 2009 22:51:43 -0000 Received: (qmail 32609 invoked by uid 22791); 28 Jan 2009 22:51:42 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_28,J_CHICKENPOX_43,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jan 2009 22:51:36 +0000 Received: by nf-out-0910.google.com with SMTP id b11so1390660nfh.18 for ; Wed, 28 Jan 2009 14:51:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.243.9 with SMTP id v9mr1647590mur.91.1233183093288; Wed, 28 Jan 2009 14:51:33 -0800 (PST) Date: Thu, 29 Jan 2009 01:44:00 -0000 Message-ID: <6910a60901281451m443ccba3ke566332355f3c81c@mail.gmail.com> Subject: opengl-1.1.0-10 glut32 linking problems From: Reini Urban To: The Cygwin Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00847.txt.bz2 The importlib /usr/lib/w32api/libglut32.a has some problems. Linking to the dll directly works fine. $ cat test.c #include #include #include int main(int argc, char *argv[]) { if(glutInit == NULL) { printf("glutInit is NULL\n"); return EXIT_FAILURE; } printf("GLUT %d\n", GLUT_API_VERSION); return EXIT_SUCCESS; } $ gcc test.c -lglut32 -lglu -lopengl32 undefined reference to `___glutInitWithExit' undefined reference to `___glutCreateWindowWithExit' undefined reference to `___glutCreateMenuWithExit' $ gcc test.c /bin/glut32.dll -lglu -lopengl32 $ ./a GLUT 3 Note that there are two more ___glut* functions, not only these three. $ nm /lib/w32api/libglut32.a | grep " ___glut" 00000000 T ___glutSetFCB@8 00000000 T ___glutInitWithExit@12 00000000 T ___glutGetFCB@4 00000000 T ___glutCreateWindowWithExit@8 00000000 T ___glutCreateMenuWithExit@8 $ objdump -t /lib/w32api/libglut32.a | grep " ___glut" [ 7](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 ___glutSetFCB@8 [ 7](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 ___glutInitWithExit@12 [ 7](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 ___glutGetFCB@4 [ 7](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 ___glutCreateWindowWithExit@8 [ 7](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 ___glutCreateMenuWithExit@8 I see nothing problematic, but I'm no expert -- Reini Urban http://phpwiki.org/ http://murbreak.at/ -- 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/