Hey all,
Just have a simple question. I am not much of a programmer, more of a script guy, but I have a client that is getting some weird output with errors while compiling.
Here is the output he is getting:
Code:
g++ test_string.cc -o test_string
test_string.cc: In function ã: <--- Notice no additional information on error
test_string.cc:10: error: ã was not declared in this scope <--- Notice no additional information on error
And should be getting something like:
Code:
g++ test_string.cc -o test_string
test_string.cc: In function main: <---- Information presented
test_string.cc:10: error: mystringx was not declared in this scope <---- Information presented
Here is the code he is trying to compile. Keep in mind, this is purposely wrong to show the error output.
Code:
#include <iostream>
#include <string>
using namespace std;
int main(int argC, char* argV[])
{
string mystring = "Hello World\n";
cout << mystringx << endl;
}
His Lang setting are all correct:
Code:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
My customer is running RHEL 5.4 64bit.
Any ideas why this is formatting this way?
Thanks!
Joe