comp.lang.ada
 help / color / mirror / Atom feed
* undefined reference while calling an imported c function as procedure in ada
@ 2018-05-25 13:52 boonflies
  2018-05-25 14:31 ` Jacob Sparre Andersen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: boonflies @ 2018-05-25 13:52 UTC (permalink / 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)`


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-25 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-25 13:52 undefined reference while calling an imported c function as procedure in ada boonflies
2018-05-25 14:31 ` Jacob Sparre Andersen
2018-05-25 15:35 ` Dennis Lee Bieber
2018-05-25 15:41 ` Niklas Holsti

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