Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > error C2106: error C2057 :error C3304:

Reply
Thread Tools

error C2106: error C2057 :error C3304:

 
 
abgm iitm
Guest
Posts: n/a
 
      11-24-2009
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(4 : error
C2106: '=' : left operand must be l-value
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
C2057: expected constant expression
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
C3304: 'PreAttribute': attribute does not allow unnamed arguments
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
C2106: '=' : left operand must be l-value
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
C2057: expected constant expression
2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : 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,,!!
 
Reply With Quote
 
 
 
 
Nick Keighley
Guest
Posts: n/a
 
      11-24-2009
On 24 Nov, 05:50, abgm iitm <(E-Mail Removed)> 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(4 : error
> C2106: '=' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C3304: 'PreAttribute': attribute does not allow unnamed arguments
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C2106: '=' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : 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)


 
Reply With Quote
 
 
 
 
Jens Thoms Toerring
Guest
Posts: n/a
 
      11-24-2009
abgm iitm <(E-Mail Removed)> 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(4 : error
> C2106: '=' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C3304: 'PreAttribute': attribute does not allow unnamed arguments
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C2106: '=' : left operand must be l-value
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> C2057: expected constant expression
> 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : 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 ___ http://www.velocityreviews.com/forums/(E-Mail Removed)
\__________________________ http://toerring.de
 
Reply With Quote
 
abgm iitm
Guest
Posts: n/a
 
      11-26-2009
On Nov 24, 6:30*pm, (E-Mail Removed) (Jens Thoms Toerring) wrote:
> abgm iitm <(E-Mail Removed)> 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(4 : error
> > C2106: '=' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C3304: 'PreAttribute': attribute does not allow unnamed arguments
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C2106: '=' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : 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 *___ * * *(E-Mail Removed)
> * *\__________________________ * * *http://toerring.de- Hide quoted text -
>
> - Show quoted text -


Thanks Jens for your comments..!!
 
Reply With Quote
 
abgm iitm
Guest
Posts: n/a
 
      11-26-2009
On Nov 24, 5:49*pm, Nick Keighley <(E-Mail Removed)>
wrote:
> On 24 Nov, 05:50, abgm iitm <(E-Mail Removed)> 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(4 : error
> > C2106: '=' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C3304: 'PreAttribute': attribute does not allow unnamed arguments
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C2106: '=' : left operand must be l-value
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : error
> > C2057: expected constant expression
> > 2>c:\apps\microsoft visual studio 9.0\vc\include\string.h(4 : 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..!!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"error C2057: expected constant expression", "error C2466: cannot allocate an array of constant size 0". Why doesn't my simple program work??? hn.ft.pris@gmail.com C++ 13 01-22-2007 02:03 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM



Advertisments