comp.lang.ada
 help / color / mirror / Atom feed
From: boonflies@gmail.com
Subject: undefined reference while calling an imported c function as procedure in ada
Date: Fri, 25 May 2018 06:52:09 -0700 (PDT)
Date: 2018-05-25T06:52:09-07:00	[thread overview]
Message-ID: <e7839a03-f2bf-4c6f-80cb-58b38792e247@googlegroups.com> (raw)

We receive, undefined reference to `CLIENT_CR', while linking.

The code we are building
In Tftp.h

`void CLIENT_CR
(
    CREATE_INFO *  CreateInfo, 
    ID         *  SessionId,
    RESULT  *  Result 
);`

2. In Tftp.ads
`procedure CLIENT_CR( CreateInfo : in  Tpkg.CREATE_INFO;
                              SessionId  : out Tpkg.ID;
                             Result     : out RESULT );

   pragma Import (C, CLIENT_CR, "CLIENT_CR");`

3. In main.adb
`#With TFTP;

...
TFTP.CLIENT_CR(INFO,ID,RESULT)`


             reply	other threads:[~2018-05-25 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-25 13:52 boonflies [this message]
2018-05-25 14:31 ` undefined reference while calling an imported c function as procedure in ada Jacob Sparre Andersen
2018-05-25 15:35 ` Dennis Lee Bieber
2018-05-25 15:41 ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox