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

Crash due to undefined type #10

Closed
fuhlig1 opened this issue Mar 16, 2021 · 1 comment
Closed

Crash due to undefined type #10

fuhlig1 opened this issue Mar 16, 2021 · 1 comment

Comments

@fuhlig1
Copy link

fuhlig1 commented Mar 16, 2021

In the code the data type uint is used a several places. I assume that an unsigned int is meant here. This type uint must be a typedef which somehow is implicitly included by one of the header files. I was not able to find out were uint is really defined.

When compiling the code on macosx with newer FairSoft/FairRoot versions the compilation crashes with the following error

/Users/uhlig/software/fair/cbm/cbmroot_git/external/AnalysisTreeQA/src/EntryConfig.hpp:74:31: error: unknown type name 'uint'
  ANALYSISTREE_ATTR_NODISCARD uint GetNdimentions() const { return axes_.size(); }

With the specific setup the type uint is suddenly undefined.

The easiest solution would be to change uint to unsigned int. Please check if you could fix the issue.
The same problem also appears in the code of AnalysisTree.

@viktorklochkov
Copy link
Collaborator

Dear @fuhlig1!

Thanks for reporting! Should be fixed with

614296d

I will merge corresponding changes also to AnalysisTree soon

Cheers,
Viktor

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

2 participants