Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4001956
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:58:03+00:00 2026-05-20T07:58:03+00:00

I needed asn1 BER encoder/decoder and found it as a part of asn1c compiler

  • 0

I needed asn1 BER encoder/decoder and found it as a part of “asn1c” compiler (here’s the link http://lionet.info/asn1c/blog/).

I have no problems compiling the whole thing, using “configure, make, make install” procedure, but it seems impossible to compile it separately.

I’m trying to compile BER encoder/decoder functionality of this package into a static library, in NetBeans. However, I’m having big problems with some “include” nonsenses. Here’s an example…

In the asn1parser.h file there’s typedef of new type called “asn1c_integer_t”

//some preprocessor statements removed to keep this post short...
typedef intmax_t asn1c_integer_t;


#include "asn1p_list.h"
#include "asn1p_oid.h"      /* Object identifiers (OIDs) */
#include "asn1p_ref.h"      /* References to custom types */
etc...

However, some of these files that are included in the previous file (asn1p_oid.h, for example) are using the new data type defined in the previous file.

#ifndef ASN1_PARSER_OID_H
#define ASN1_PARSER_OID_H

typedef struct asn1p_oid_arc_s {
    asn1c_integer_t number; /* -1 if not yet defined */
    char *name; /* 0 if not defined */
} asn1p_oid_arc_t;
etc...

It makes no sense to me, and I keep getting errors like:

asn1parser.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘asn1c_integer_t’

Can anyone help me to solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:58:04+00:00Added an answer on May 20, 2026 at 7:58 am

    I was sure that “includes” were the cause of the trouble, however, the problem was this line

    typedef intmax_t asn1c_integer_t;
    

    Apparently my version of gcc does not recognize this intmax_t type. I exchanged it for simple “int”, and now it works 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I needed some simple string encryption, so I wrote the following code (with a
We needed to monitor all processes Registry calls/File Sytem calls/Process creations in the system
I needed to find all the files that contained a specific string pattern. The
I needed to re-install my computer but I didn't think about exporting the data
I needed a generic collection or list that can fire an event when an
I needed an algorithm to generate all possible partitions of a positive number, and
I needed to convert a Java 1.5se app to C# 2.0. Does anyone know
I needed a Low-Pass-Filter in one of my Scala projects and came up with
What's needed to succesfully make a crossdomain call from Silverlight?
Are .css files always needed? Or may I have a .css basic file and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.