This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: OpenGL does not render when linked with -mno-cygwin
- From: André Bleau <andre_bleau at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 16 Mar 2005 14:37:24 -0500
- Subject: Re: OpenGL does not render when linked with -mno-cygwin
- Bcc:
Arvind N wrote:
I am using g++ Version 3.3.3 on a Windows XP box to write a program that
draws mathematical
functions as graphs. The program works fine when I compile and link without
-mno-cygwin and the graphs are rendered fine. However, if I add -mno-cygwin
to the compile line and "-L/usr/lib/mingw -lstdc++" to the link line, all I
get is a black screen. I am using GLUT to create the window and the menus
and all of those work fine but there is nothing rendered into the window. I
do not get any errors either.
Such a difference between a Mingw and a Cygwin application is often clue of
a hidden bug in the application. Something may be corrupted or not
initialized properly.
I do not get any compiler/linker warnings or errors when I compile with
-mno-cygwin. Are there any dependencies that OpenGL has with cygwin1.dll?
No, OpenGL has no dependency on cygwin1.dll. The OpenGL implementation used
is the one provided by M$ for Windows.
The link line uses the libraries in the order "-lglut32 -lglu32 -lopengl32"
which seems to be what the documentation says.
Here are the cygcheck outputs with and without mno-cygwin:
* With mno-cygwin:
...
* Without mno-cygwin
...
I would appreciate any help with this.
There are 6 examples of C++ programs using GLUI, GLUT and OpenGL under
/usr/bin/GLUI-examples
these were compiled with -mno-cygwin. Are you able to run them ?
Sources for these examples, including a Makefile, are in
/usr/share/doc/opengl-1.1.0/GLUIexamples
Thanks in advance,
Arvind
André Bleau, Cygwin's OpenGL package maintainer
Please adress any question or comment about the OpenGL package to cygwin at
cygwin.com
_________________________________________________________________
Profitez des puissants filtres de courriels indésirables articulé sur la
technologie brevetée Microsoft SmartScreen.s
http://join.msn.com/?pgmarket=fr-ca&page=features/popup Commencez dès
maintenant à profiter de tous les avantages de MSN Premium et obtenez les
deux premiers mois GRATUITS*.
--
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/