Compiler error: memset was not declared in this scope
Posted
by michael
on Stack Overflow
See other posts from Stack Overflow
or by michael
Published on 2010-03-24T04:38:07Z
Indexed on
2010/03/24
4:43 UTC
Read the original article
Hit count: 383
Hi,
I am trying to compile my c program in ubuntu 9.10 (gcc 4.4.1).
I am getting this error:
Rect.cpp:344: error: ‘memset’ was not declared in this scope
But the problem is I have already included in my cpp file:
#include <stdio.h>
#include <stdlib.h>
And the same program compiles fine under ubuntu 8.04 gcc 4.2.4).
Please tell me what am i missing.
Thank you.
© Stack Overflow or respective owner