Skip to content

C++ namespace conflict #192

Description

@PeterQFR

I'm Trying to include supernovas into a cmake project (minimum 3.8) gcc 9.4.0. However in novas.h line 1331, you've called a variable the same as the struct name which produces a compiliation error.

novas.h:1331:12: error: declaration of ‘observer <unnamed struct>::observer’ changes meaning of ‘observer’ [-fpermissive]

from line:

https://github.com/Smithsonian/SuperNOVAS/blob/68f79642100972a4f19ef45cb9e79b181e8e4850/include/novas.h#L1331

how do you compile this, as I cannot be the first to have come across this issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions