Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile RRC generated files on VC++ #49

Open
nickaein opened this issue Oct 8, 2014 · 5 comments
Open

Cannot compile RRC generated files on VC++ #49

nickaein opened this issue Oct 8, 2014 · 5 comments

Comments

@nickaein
Copy link

nickaein commented Oct 8, 2014

Hi,

The generated code for 3GPP RRC compiles on linux (gcc), but I fails to compile. The problem is with the A_SET_OF macro, apparently, which defines a free function that has a structure definition as the parameter. Here is more info about the problem: http://stackoverflow.com/questions/26207145

As the documentation of asn1c says with minor teaks it possible to compile the generated on VC++, I wanted to ask if there is workaround to this issue.

@vlm
Copy link
Owner

vlm commented Oct 13, 2014

Currently there is no work-around.

@nickaein
Copy link
Author

I replaced type* with void* in the definition of the free function. This hack solved the issue. I've also had to add two dummy variables to asn_INTEGER_specifics_s and asn_per_constraints_s structs to bypass Too many initializer error.

Now I have reached a point in which I am getting C1046: compiler limit : struct nested too deeply error (e.g. on this file) since (as the error says) some structures are too nested and I am not sure if it can be solved.

There is rrc-dump.exe included in the Windows installer http://lionet.info/asn1c/download.html built on 2006. Is it compiled for Windows using a different compiler? Or the older version of asn1c (back in 2006) was compatible with VC++?

@brchiu
Copy link
Contributor

brchiu commented May 30, 2016

Hi, @nickaein,

I submitted a pull request #96 trying to solve this issue. Currently there is no warning when building rrc-dump on Linux platform. But I don't know whether it works on VC++. Just for your reference.

thanks.
regards,
brchiu.

@nickaein
Copy link
Author

@brchiu Thanks. I Will give it a try and let you know

@brchiu
Copy link
Contributor

brchiu commented May 31, 2016

@nickaein, Many thanks for your feedback.

Today @mdrenwick feedback to me in #95 that my original pull request not work for R12 RRC ASN.1 file.
I found that my modification is incomplete and need to consider more cases like CHOICE type.

I have already made this change in my modified pull request.

For your reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants