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

Static declaration in cpp file ambiguous symbol #375

Open
kunitoki opened this issue Jul 29, 2024 · 0 comments
Open

Static declaration in cpp file ambiguous symbol #375

kunitoki opened this issue Jul 29, 2024 · 0 comments

Comments

@kunitoki
Copy link

kunitoki commented Jul 29, 2024

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.

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

1 participant