This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenGL and cygwin

On Mon, Nov 10, 2003 at 05:12:12PM -0500, Suresh Venkatasubramanian wrote:
>On Mon, 10 Nov 2003, Christopher Faylor wrote:
>> On Mon, Nov 10, 2003 at 04:43:10PM -0500, Suresh Venkatasubramanian wrote:
>> >True, but I am not using cygwin dlls.  I am using native windows opengl
>> >dlls and an nvidia glut dll.  moreover, I compile using -mno-cygwin....
>> Go back and read the output from cygcheck that you sent to this mailing
>> list.  It shows that you *are* using a cygwin DLL:
>> C:\cygwin\bin\glut32.dll
>> So, I will say it again: You can't use cygwin DLLs in a non-cygwin
>> application.
>I understand what you are saying. Hence I tried compiling using an nvidia
>glut dll rather than cygwin\bin\glut32.dll. The results I got were the
>same i.e the same error. nvidia is a graphics card manufacturer and they
>provide windows dlls for their windows demos (that run fine). The
>glut32.dll they provide is non-cygwin as are the other opengl dlls I am
>using, so as far as I can make out, all my dlls are non-cygwin.

So, as I said, I don't know OpenGL.  However, if I was debugging this,
I would surely take cygwin entirely out of the mix since you are
building the application with -mno-cygwin and there should be no
reliance on the cygwin DLL at all, contrary to what is showing up
in your error message.

That means I wouldn't run the application from a bash shell.  You might
even remove cygwin from the path entirely.  If you were desperate, you
could even rename cygwin1.dll to something else temporarily.

>euclid 5:06pm [3d_diameter]> cygcheck main
>Found: .\main.exe
>  C:\WINDOWS\System32\msvcrt.dll
>    C:\WINDOWS\System32\KERNEL32.dll
>      C:\WINDOWS\System32\ntdll.dll
>  C:\WINDOWS\System32\GLU32.DLL
>    C:\WINDOWS\System32\OPENGL32.dll
>      C:\WINDOWS\System32\ADVAPI32.dll
>        C:\WINDOWS\System32\RPCRT4.dll
>      C:\WINDOWS\System32\GDI32.dll
>        C:\WINDOWS\System32\USER32.dll
>      C:\WINDOWS\System32\DDRAW.dll
>        C:\WINDOWS\System32\DCIMAN32.dll
>  .\glut32.dll
>    C:\WINDOWS\System32\WINMM.dll
>where .\glut32.dll is the nvidia dll I was referring to.
>the error message (on this executable) is reproduced below:
>euclid 5:09pm [3d_diameter]> ./main ifile1
>      2 [unknown (0x8C4)] ? 2364 cygheap_fixup_in_child: Couldn't reserve
>spacefor cygwin's heap (0x61600000 <0x0>) in child, Win32 error 487
>C:\cygwin\home\Suresh\src\myopengl\envelopes\3d_diameter\main.exe: ***
>m.AllocationBase 0x61600000, m.BaseAddress 0x61600000, m.RegionSize 0x3000, m.State
Please use the resources at rather than sending personal email.
Special for spam email harvesters: send email to
and be permanently blocked from mailing lists at

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]