Skip to content

Static declaration in cpp file ambiguous symbol #375

@kunitoki

Description

@kunitoki

In clipping_shape.cpp file:

static Mat2D identity; // this clashes with other definitions of identity in the global namespace
void ClippingShape::update(ComponentDirt value)
{

consider doing this instead:

void ClippingShape::update(ComponentDirt value)
{
    static Mat2D identity;

Related to https://github.com/rive-app/rive-cpp/issues/374 because of the using namespace rive; at the top. The using namespace is not placing subsequent declarations in that namespace but they will be in the global namespace.

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