<br><div class="gmail_quote">On Mon, Aug 27, 2012 at 3:39 PM, Matthew Flatt <span dir="ltr">&lt;<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You need<br>
<div class="im"><br>
 (define-amqp amqp_queue_declare<br>
   (_fun _amqp-connection-state-pointer<br>
         _amqp_channel_t _pointer _int _int _int _int _pointer<br>
</div>         -&gt; _amqp_queue_declare_ok_t-pointer))<br>
<br>
Using `_amqp_queue_declare_ok_t&#39; corresponds to the return type<br>
`_amqp_queue_declare_ok_t&#39;, while `_amqp_queue_declare_ok_t-pointer&#39;<br>
corresponds to `_amqp_queue_declare_ok_t*&#39;.<br></blockquote><div><br>Many thanks Matthew.  That has fixed it.<br><br>Juan<br></div></div>