This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc (g++4.4.3) have no right to modify the name of my varialbe
- From: Ian Lance Taylor <iant at google dot com>
- To: <fsshl at luxmail dot com>
- Cc: <gcc at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 04 Nov 2010 22:06:49 -0700
- Subject: Re: gcc (g++4.4.3) have no right to modify the name of my varialbe
- References: <20101104123552.F21F153@resin05.mta.everyone.net>
"eric lin" <fsshl@luxmail.com> writes:
> dear alex:
> thanks your email, but
> (1) your suggestion is not work, it still get same error
> (2) g++(4.4.3) have no right to modify the name of my variable, it is "string" that I use(or Bjarne Stroustrup use)
> not "String" that gcc/g++4.4.3 show on the compiler error
> (3) if I put std::string replace string on Window.cpp file, g++ will complaint
Please never send e-mail to both the mailing lists gcc@gcc.gnu.org and
gcc-help@gcc.gnu.org. This e-mail is not appropriate for
gcc@gcc.gnu.org, and should only have been sent to gcc-help. Thanks.
g++ never changes the names of types. If you are seeing String where
you wrote string, then some #define is in effect.
If you want help with this, you need to provide a complete standalone
test case. However, from what I have seen so far this is not a gcc
issue, and you are asking in the wrong place. You are having basic C++
trouble, perhaps due to a confusion of header files. You should be
asking in a C++ or Windows help group.
Ian