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

Yara uses C++ reserved words #12

Closed
plusvic opened this issue Nov 24, 2013 · 1 comment
Closed

Yara uses C++ reserved words #12

plusvic opened this issue Nov 24, 2013 · 1 comment

Comments

@plusvic
Copy link
Member

plusvic commented Nov 24, 2013

From mjwia...@gmail.com on January 18, 2011 04:04:56

Yara uses the word 'namespace' which is a C++ reserved word in numerous locations as a variable name.

Trying to link yara into a C++ application leads to compilation errors.

Suggested fix is to simply rename the namespace variable to something that isn't a reserved word in the following locations:

yara.h lines 206, 295
ast.h line 164
libyara.c lines 201, 440
ast.c lines 28, 35, 166

yara-python.c contains the word namespace, but since this becomes a python module, not as much of a concern.

Original issue: http://code.google.com/p/yara-project/issues/detail?id=12

@plusvic
Copy link
Member Author

plusvic commented Nov 24, 2013

From plus...@gmail.com on February 16, 2011 14:54:09

Fixed on r84 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant