Gcc 4.3 and Header issues
May13
I’m using gcc 4.3.3 version and nowadays i’m trying to write hybrid file transfer system with c++ on Linux.The problem is i used to use some function in c or c++ like strcmp() with including string library but now when i try to compile I’m getting some error like
error: ‘strcmp’ was not declared in this scope
Simple example code
In gcc 4.1 version i can compile this code without any error or warning
-
#include <string>
-
#include <iostream>
-
using namespace std;
-
main()
-
{
-
if(!strcmp("gccHeaderIssue","gccHeaderIssue"))
-
{
-
cout< <"kelimeler ayni"<<endl;
-
}
-
}
-