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

sandbox compiler error! #84

Closed
xiaoxin2016 opened this issue May 19, 2018 · 4 comments
Closed

sandbox compiler error! #84

xiaoxin2016 opened this issue May 19, 2018 · 4 comments

Comments

@xiaoxin2016
Copy link

xiaoxin2016 commented May 19, 2018

testcase/memlimit.c: In function ‘main’:
testcase/memlimit.c:6:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
     memset(p, 0, 1024*1024*1024);
     ^~~~~~
testcase/memlimit.c:6:5: warning: incompatible implicit declaration of built-in function ‘memset’
testcase/memlimit.c:6:5: note: include ‘<string.h>’ or provide a declaration of ‘memset’
./runtest.sh 3 -l memory=1048576 memlimit_test
Makefile:94: recipe for target 'memlimit' failed
make: *** [memlimit] Error 1

What should I do??
Thanks a lot!

@fabraz
Copy link

fabraz commented Aug 26, 2018

I got the same problem! Have you fix it? If so, can you share the solution?

@sunner
Copy link
Member

sunner commented Aug 27, 2018

@andyliu24 @fabraz Can you try insert the following line of code to the second line of memlimit.c ?

#include <string.h>

@LIU3379
Copy link

LIU3379 commented May 12, 2019

I got the same problem! Have you fix it? If so, can you share the solution?

@ndrwnaguib
Copy link
Collaborator

@LIU3379 Pull and try again please.

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

5 participants