On Thu, 23 May 2002, Massimiliano Farris wrote:

>   Hi,
>   my ASN.1 module has a type like this:
>
>   obj1 ::= SEQUENCE OF obj2
>
>   when I asn.1 compile this, I get the struct
>   in my C header file:
>
>       typedef struct obj1 {
>           struct obj1 *next;
>           struct obj2 *value;
>       } *obj1;
>
>   but when I C(C++) compile this, the compiler
>   tell me that:
>   "'struct obj1 *' differs in levels of
>     indirection from 'struct obj1'".
>
>   Is there an option for the ASN.1 compiler so that
>   the struct be:
>
>       typedef struct obj1_ {
>           struct obj1_ *next;
>           struct obj2 *value;
>       } *obj1;
>
>   thanks in advance,

Check with the maker of your ASN.1 compiler.

-------------------------------------------------------------------------
Bancroft Scott                               Toll Free    :1-888-OSS-ASN1
OSS Nokalva                                  International:1-732-302-0750
[EMAIL PROTECTED]                                 Tech Support :1-732-302-9669 x-1
1-732-302-9669 x-200                         Fax          :1-732-302-0023
http://www.oss.com

Reply via email to