<div style="font: normal 13px Arial; color:rgb(0, 0, 0);">Sorry, I first posted this on the -dev list, likely inappropriate... now with an update:<br><br>I am exploring my options with OpenSSL and specifically I am trying to manage the stacks for some custom objects.<br>Currently, I have this code (sort of) in the headers:<br><br>typedef struct myThingA_st<br>{<br>     ASN1_OBJECT aID;<br>     ASN1_OCTET_STRING aOCST;<br>}<br>     myThingA;<br><br>DECLARE_ASN1_ITEM(myThingA)<br>DECLARE_ASN1_FUNCTIONS(myThingA)<br>DECLARE_STACK_OF(myThingA)<br>// the next one seems to be ininfluent for my purpose, is it?<br>DECLARE_ASN1_SET_OF(myThingA)<br><br>typedef struct myThingB_st<br>{<br>     // SEQUENCE OF { ... }<br>     STACK_OF(myThingA) myThingA_sk;<br>}<br>     myThingB;<br><br>// DECLARE_ASN1_ITEM(myThingB)<br>DECLARE_STACK_OF(myThingB)<br>// DECLARE_ASN1_FUNCTIONS(myThingB)<br>// the next one seems to be ininfluent for my purpose, is it?<br>DECLARE_ASN1_SET_OF(myThingB)<br><br>Then, in the .c file...<br><br>IMPLEMENT_STACK_OF(myThingA)<br>IMPLEMENT_STACK_OF(myThingB)<br><br>I thought that the basic functions for the stacks to be available (such as sk_myThingA_new, sk_myThingA_push...), yet by compiling a main, for <br>the first one that I try to use I get:<br><br>       undefined reference to `sk_myThingA_value'<br><br>What am I doing wrong here?<br></div>