Skip to content

[master] Class attributes ignored in compilation? #701

@hartwork

Description

@hartwork

Hi!

I'm getting a compile warning with latest master that seems to point out something important:

[..]/src/libprojectM/PCM.hpp:50:23: warning: attribute ignored in declaration of ‘class Pcm’ [-Wattributes]
   50 | PROJECTM_EXPORT class Pcm
      |                       ^~~
[..]/src/libprojectM/PCM.hpp:50:23: note: attribute for ‘class Pcm’ must follow the ‘class’ keyword

And a second time for a different class:

[..]/src/libprojectM/ProjectM.hpp:69:23: warning: attribute ignored in declaration of ‘class ProjectM’ [-Wattributes]
   69 | PROJECTM_EXPORT class ProjectM
      |                       ^~~~~~~~
[..]/src/libprojectM/ProjectM.hpp:69:23: note: attribute for ‘class ProjectM’ must follow the ‘class’ keyword

If >=4.0 is supposed to only expose C API but no C++ then PROJECTM_EXPORT can just be dropped from these classes altogether? Or should just the order be fixed?

Thanks and best, Sebastian

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions