Skip to content

Compilation problem: error: 'visibility' attribute ignored when parsing type (enum) #25

@g7fernandes

Description

@g7fernandes
In file included from /home/gabriel/git/capicxx-core-runtime/src/CommonAPI/Address.cpp:10:
/home/gabriel/git/capicxx-core-runtime/include/CommonAPI/Logger.hpp:31:37: error: 'visibility' attribute ignored when parsing type [-Werror,-Wignored-attributes]
    enum class Level : std::uint8_t COMMONAPI_EXPORT {
                                    ^~~~~~~~~~~~~~~~
/home/gabriel/git/capicxx-core-runtime/include/CommonAPI/Export.hpp:19:46: note: expanded from macro 'COMMONAPI_EXPORT'
    #define COMMONAPI_EXPORT __attribute__ ((visibility ("default")))
                                             ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/CommonAPI.dir/build.make:63: CMakeFiles/CommonAPI.dir/src/CommonAPI/Address.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:132: CMakeFiles/CommonAPI.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I'm using Ubuntu 20.04 and the last release of Common API (3.2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions