delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/24/18:10:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C804DE44@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms AT icon-scm DOT com>
To: "'Krishna, Buska (IE10)'" <Krishna DOT Buska AT honeywell DOT com>, cygwin AT cygwin DOT com
Subject: RE: Linking Problem
Date: Sat, 25 Aug 2001 00:10:06 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Hi Krishna,

I know nothing about the Ada parameter passing convention,
but your problem doesn't look cygwin specific to me.
Ada obviously expects passing a pointer to your structure (by reference),
while you are passing the structure (of three 4-byte fields) directly (by
value).

Bye, Heribert (heribert_dahms AT icon-gmbh DOT de)

> -----Original Message-----
> From:	Krishna, Buska (IE10) [SMTP:Krishna DOT Buska AT honeywell DOT com]
> Sent:	Friday, August 24, 2001 06:54
> To:	cygwin AT cygwin DOT com
> Subject:	Linking Problem
> Importance:	High
> 
> Hi all
> 
> 	I got a strange problem. I am having a  .a file which exports a
> function with 2 arguments, one is a record with three fields and the other
> one is a void *.  We have formed the archive file using cygwin. The
> exported
> function is exporting at 16 value. That is, in the export symbols I could
> see  function AT 16. As I know if there are two parameters in the exported
> function, it should be exported @8 only. When I am trying to import the
> same
> function using a C program it is importing this function @16 only. But if,
> I import the same function in Ada program (I am using GNAT3.13p compiler.)
> by using pragma Import it is importing @8. So its giving linking problem. 
> What could be the problem? The source code in the archive  file is written
> in C. 
> 
> Thanks in advance.
> 
> Krishna
> 

--
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/

- Raw text -


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