From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 23:47:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3292016A4CE for ; Fri, 6 Feb 2004 23:47:52 -0800 (PST) Received: from cw-1.crocker.com (lvsd-1.crocker.com [204.97.12.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEA7643D1D for ; Fri, 6 Feb 2004 23:47:49 -0800 (PST) (envelope-from research@microcalorimetry.com) Received: (qmail 29361 invoked by uid 106); 2 Feb 2004 13:17:54 -0000 Received: from research@microcalorimetry.com by cw-1.crocker.com by uid 103 with qmail-scanner-1.20rc1 (spamassassin: 2.63. fsecure: 4.51 build 2312 Clear:RC:1:. Processed in 0.043225 secs); 02 Feb 2004 13:17:54 -0000 Received: from unknown (HELO S0026730663) ([204.213.242.164]) (envelope-sender ) by mail.crocker.com (qmail-ldap-1.03) with SMTP for ; 2 Feb 2004 13:17:54 -0000 From: "Chris Fisichella" To: Date: Mon, 2 Feb 2004 08:21:41 -0500 Message-ID: <003f01c3e98f$7f2e4600$3200a8c0@S0026730663> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <401C975D.5040703@hqst.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: RE: Compiling OpenGL code with GCC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 07:47:52 -0000 Yes, that was just a typo. I think I will try to look at some screensave code. Maybe there are some compiling hints in there. Does anybody have any ideas? Chris Chris Fisichella wrote: >>#define >> >> >Is that just a typo for your e-mail? It should be >#include >--roop _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscribe@freebsd.org Hi, I am using FreeBSD 4.4 with GCC 2.95. I am trying to get a simple OpenGL program to compile. I think I am having linking issues. The problem is this error I get from the compiler: undefined reference to 'glXQueryExtension' Now, I call that function in my code. I found the prototype for it in /usr/X11R6/include/GL/glx.h. On the compiler line, I specify -I/usr/X11R6/include and (I think) the compiler can then resolve the #include statement I have in my source code and, hence find the include file. Additionally, the book I am reading has me specify the following libraries: -lGL -lXext -lX11 I added the library directory flag: -L/usr/X11R6/lib where I find libGL.a, libXext.a and libX11.a are located. Well, I kept getting that error. So, I tried renaming the compiler libraries on the command line: -llibGL -llibXext -lX11 and tried other permutations to try to get this code to link. But, it won't and I am stuck. If any one out there has some insight into this, I would appreciate some help. Thanks very much, Chris