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

Windows: _snprintf not in scope #6

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Windows: _snprintf not in scope #6

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Try to generate a plugin using nixysa
2. Receive a compile error

What is the expected output? What do you see instead?
The expected output would be:
scons: done building targets

Instead, I get:
C:\Sources\nixysa\nixysa\static_glue\npapi\common.cc:185:48: error: '_snprintf'
was not declared in this scope
scons: *** [C:\Sources\nixysa\nixysa\static_glue\npapi\common.o] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
Nixysa SVN revision 73.
Windows XP SP2
MinGW-20110211
Python-2.7
scons-2.0.1
pywin32-216

Please provide any additional information below.
The problem was resolved adding the "stdio.h" library to the scope. I would 
recommend to change the "common.cc" file and add the following line to the 
OS_WINDOWS block:

#ifdef OS_WINDOWS
#include <windows.h>
#include <stdio.h>
#define snprintf _snprintf
#endif 


Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 1:40

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