[Warning] -fno-access-control
I have just started writing C code in dev-c++. The programs are running fine, but each C program shows me the following warning:
[Warning] command line option "-fno-access-control" is valid for C++/ObjC++ but not for C
The test program I used was:
#include<stdio.h>
int main(){
system("pause");
return 0;
}
After searching a lot all I could find was:-fno-access-control Do not obey access control semantics
Can anyone please explain, what is this all about?
Thanks..
techie1991
Junior Poster in Training
72 posts since Feb 2010
Reputation Points: 36
Solved Threads: 9
Go to Project -> Project Options -> Compiler -> C++ Compiler and set "Turn off all access checking option" to No.
So, this is actually the problem of the compiler, nothing less on my code.. right..?
If that is the case, then why is it not set as "NO" by default..
techie1991
Junior Poster in Training
72 posts since Feb 2010
Reputation Points: 36
Solved Threads: 9