Hi Marco,

On Sun, Feb 28, 2010 at 4:50 AM, Marco Maggi <[email protected]> wrote:
> "Grant Rettke" wrote:
>> In gl.ss, glut.ss and ypsilon-compat.ikarus.ss I added the
>> bits  to   recognize  Cygwin  and   load  libGl.dll.a  and
>> libglut.dll.a respectively.
>
> Do the  libraries really  have the ".dll.a"  extension?

Not the ones I should be loading. I assumed.

> Are you sure that they really are shared libraries?

Ditto.

Not being able to sleep this morning, I read more about this nomenclature here:

http://cygwin.com/cygwin-ug-net/dll.html#dll-link
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html

to find that dll.a files are something specific to Windows dlls.
Apparently Windows DLLs need more information if you want to link
against them. So if you already have a Cygwin compiled DLL without
that information, you need to generate it in the form of import
libraries. I had specified an import library rather than the original
DLL. While this is ok when compiling, obviously that is not what
Ikarus wants.

> If you try to DLOPEN a  file which is not a  shared library, what error
> message do  you get?

If I open an exe for example, it does not error out.

If I open a text file, it does: "Permission denied".

> Are you able  to DLOPEN  other shared libraries?

Following the Cygwin hello-world tutorial:

http://cygwin.com/cygwin-ug-net/dll.html

I built a hello-world dll and that worked fine. Following your
questions, and that hello-world example, got me down the path
towards... understanding.

The correct libs are /bin/cygGL-1.dll and /bin/cygglut-3.dll.

the box2d-lite demos work just fine.

Thanks Marco.

Now... sleep :).

Best wishes,

Grant
-- 
http://www.wisdomandwonder.com/

Reply via email to