f



error C2106: error C2057 :error C3304:

I have faced intrinsic errors  "error C2106 / error C2057 / error
C3304" in Visual studio 2008. Though the source files have included
with header files like "math.h" and "ctype.h", compilation gives error
as given below.

2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
C2106: '=' : left operand must be l-value
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
C2057: expected constant expression
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
C3304: 'PreAttribute': attribute does not allow unnamed arguments
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
C2106: '=' : left operand must be l-value
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
C2057: expected constant expression
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
C3304: 'PreAttribute': attribute does not allow unnamed arguments

I guess this is related to version of visual studio. Can anyone help
to know which version of visual studio resolves these errors?

Thanks in advance,,!!
0
abgmiitm (1)
11/24/2009 5:50:20 AM
comp.lang.c 30657 articles. 3 followers. spinoza1111 (3246) is leader. Post Follow

4 Replies
1549 Views

Similar Articles

[PageSpeed] 21

On 24 Nov, 05:50, abgm iitm <abgmi...@gmail.com> wrote:
> I have faced intrinsic errors =A0"error C2106 / error C2057 / error
> C3304" in Visual studio 2008. Though the source files have included
> with header files like "math.h" and "ctype.h", compilation gives error
> as given below.
>
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2106: '=3D' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C3304: 'PreAttribute': attribute does not allow unnamed arguments
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2106: '=3D' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C3304: 'PreAttribute': attribute does not allow unnamed arguments
>
> I guess this is related to version of visual studio. Can anyone help
> to know which version of visual studio resolves these errors?

post your code

if you really think these are Microsoft specific (and "left operand
must be l-value" sounds pretty generic to me) then try a MS specific
news group or google the error codes (MS error codes seem to make good
google search criteria)


0
Nick
11/24/2009 12:49:52 PM
abgm iitm <abgmiitm@gmail.com> wrote:
> I have faced intrinsic errors  "error C2106 / error C2057 / error
> C3304" in Visual studio 2008. Though the source files have included
> with header files like "math.h" and "ctype.h", compilation gives error
> as given below.

> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2106: '=' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C3304: 'PreAttribute': attribute does not allow unnamed arguments
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2106: '=' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> C3304: 'PreAttribute': attribute does not allow unnamed arguments

> I guess this is related to version of visual studio. Can anyone help
> to know which version of visual studio resolves these errors?

I have never used Visual Studio but I find it rather unlikely
that there are such bugs in header files. In my experience you
get errors like that when you have some bug like a forgotten
semicolon etc. in the sorce file that includes the header file.

                                Regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de
0
jt
11/24/2009 1:30:04 PM
On Nov 24, 6:30=A0pm, j...@toerring.de (Jens Thoms Toerring) wrote:
> abgm iitm <abgmi...@gmail.com> wrote:
> > I have faced intrinsic errors =A0"error C2106 / error C2057 / error
> > C3304" in Visual studio 2008. Though the source files have included
> > with header files like "math.h" and "ctype.h", compilation gives error
> > as given below.
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2106: '=3D' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C3304: 'PreAttribute': attribute does not allow unnamed arguments
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2106: '=3D' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C3304: 'PreAttribute': attribute does not allow unnamed arguments
> > I guess this is related to version of visual studio. Can anyone help
> > to know which version of visual studio resolves these errors?
>
> I have never used Visual Studio but I find it rather unlikely
> that there are such bugs in header files. In my experience you
> get errors like that when you have some bug like a forgotten
> semicolon etc. in the sorce file that includes the header file.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Regards, =
Jens
> --
> =A0 \ =A0 Jens Thoms Toerring =A0___ =A0 =A0 =A0j...@toerring.de
> =A0 =A0\__________________________ =A0 =A0 =A0http://toerring.de- Hide qu=
oted text -
>
> - Show quoted text -

Thanks Jens for your comments..!!
0
abgm
11/26/2009 2:36:02 AM
On Nov 24, 5:49=A0pm, Nick Keighley <nick_keighley_nos...@hotmail.com>
wrote:
> On 24 Nov, 05:50, abgm iitm <abgmi...@gmail.com> wrote:
>
>
>
>
>
> > I have faced intrinsic errors =A0"error C2106 / error C2057 / error
> > C3304" in Visual studio 2008. Though the source files have included
> > with header files like "math.h" and "ctype.h", compilation gives error
> > as given below.
>
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2106: '=3D' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C3304: 'PreAttribute': attribute does not allow unnamed arguments
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2106: '=3D' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(48) : error
> > C3304: 'PreAttribute': attribute does not allow unnamed arguments
>
> > I guess this is related to version of visual studio. Can anyone help
> > to know which version of visual studio resolves these errors?
>
> post your code
>
> if you really think these are Microsoft specific (and "left operand
> must be l-value" sounds pretty generic to me) then try a MS specific
> news group or google the error codes (MS error codes seem to make good
> google search criteria)- Hide quoted text -
>
> - Show quoted text -

Thanks Nick for your comments..!!
0
abgm
11/26/2009 2:37:14 AM
Reply: