Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error C2106: error C2057 :error C3304:

10 views
Skip to first unread message

abgm iitm

unread,
Nov 24, 2009, 12:50:20 AM11/24/09
to
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,,!!

Nick Keighley

unread,
Nov 24, 2009, 7:49:52 AM11/24/09
to

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)


Jens Thoms Toerring

unread,
Nov 24, 2009, 8:30:04 AM11/24/09
to

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 ___ j...@toerring.de
\__________________________ http://toerring.de

abgm iitm

unread,
Nov 25, 2009, 9:36:02 PM11/25/09
to
On Nov 24, 6:30 pm, j...@toerring.de (Jens Thoms Toerring) wrote:
>    \__________________________      http://toerring.de- Hide quoted text -
>
> - Show quoted text -

Thanks Jens for your comments..!!

abgm iitm

unread,
Nov 25, 2009, 9:37:14 PM11/25/09
to
On Nov 24, 5:49 pm, Nick Keighley <nick_keighley_nos...@hotmail.com>
wrote:
> google search criteria)- Hide quoted text -

>
> - Show quoted text -

Thanks Nick for your comments..!!

0 new messages