delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/09/06:38:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4D00BFAF.1050307@freenet.de>
Date: Thu, 09 Dec 2010 12:38:23 +0100
From: =?ISO-8859-1?Q?Klaus_Ramst=F6ck?= <klra67 AT freenet DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Glut Problem
References: <BLU149-W613956508FB9127897128E932D0 AT phx DOT gbl>
In-Reply-To: <BLU149-W613956508FB9127897128E932D0@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi André,

Am 08.12.2010 18:33, schrieb André Bleau:
> "Dont start". What does that mean? Your programs crash? You get an error message? Please be more
> explicit.
No, this is windows, I dont get an error message. Unless I start the
program with the sysinternals tool VMMayp, when he tells me he does not
find __glutGetFCB in glut32.dll. When I analyze glut32.dll with
PEViewer, I find it exports ___glutGetFCB AT 4 (note the 3 underbars)


>> #include <GL/glutf90.h>
>  
> What is glutf90.h ? It is not part of the OpenGL package.
It is not, but it should be. I took it from a glut implementation.

>  
>> int button, state;
>>  ((GLUTbuttonBoxFCBUSR)__glutGetFCB(GLUT_FCB_BUTTON_BOX))(&button, &state);
>  
> These 2 lines are total nonsense. FCB stands for Fortran CallBack.

Right. But they insert a reference to this function into the code. The
code links fine, because __glutGetFCB is present in the .a library, but
the library seems to reference the wrong symbol in the .dll

> - Fortran is unsupported by the OpenGL package. I am not interrested in adding that support, 
>   but I would accept patches that do.
Fine.

> - Even if it was supported, you cannot blindly insert a call to a Fortran function into a C function.
This is just to trigger the bug.

> I think your problem is deeper than that. You need to explain what you are trying to do. If you
> are trying to port some Fortran program that was meant to run on Silicon Graphics to Windows 
> you will have a hard time.
No, as said, I try to port f90gl to cygwin, so I can run some fortran
programs of mine that use it.

Thank you for your time, André

Klaus

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019