Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Reply-To: From: "Norman Vine" To: Subject: RE: Segmentation fault using OpenGL Date: Fri, 21 Mar 2003 16:18:48 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <3E7B7CB0.9050002@verizon.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Scanned: Cape.Com VirusScan, no known virus found Tron Thomas > > I have written a Windows OpenGL program which I can successfully build > and run using both the Borland and Microsoft compilers. When I try to > run the same program after building it with the Cygwin GCC compiler, I > get a segmentation fault. I'm very puzzled by this as the program works > fine when built with other compilers. > > Does anyone have experieince with Cygwin and OpenGL and might know what > could be causing this problem? The fault occur when I call glTexImage2D > to create a 2 dimensional texture. OpenGL works in Cygwin exactly the same as in any other system so this is assuredly another problem I suggest that you run your program under a debugger to see what your problem is. Hint - I would start by examing the arguments passed into the glTexImage2d call that is failing HTH Norman -- 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/