error C2106: error C2057 :error C3304:

A

abgm iitm

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,,!!
 
N

Nick Keighley

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?

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)
 
J

Jens Thoms Toerring

abgm iitm said:
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
 
A

abgm iitm

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  ___      (e-mail address removed)
   \__________________________      http://toerring.de- Hide quoted text -

- Show quoted text -

Thanks Jens for your comments..!!
 
A

abgm iitm

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..!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top