delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/17/07:45:50

From: "Erik Källén" <erik_kallen AT NOSPAM DOT hotmail DOT com>
Newsgroups: comp.os.ms-windows.programmer.win32,comp.os.msdos.djgpp
Subject: Re: Copying whole arrays
Date: Thu, 17 Jun 1999 13:09:49 +0200
Organization: Telenordia
Lines: 21
Message-ID: <7kal16$5c6$1@zingo.tninet.se>
References: <eJm9zGAVVAa3EwWP AT dunvegan1 DOT demon DOT co DOT uk>
NNTP-Posting-Host: sdu114-232.ppp.algonet.se
X-Trace: zingo.tninet.se 929617766 5510 195.163.232.114 (17 Jun 1999 11:09:26 GMT)
X-Complaints-To: abuse AT algo DOT net
NNTP-Posting-Date: 17 Jun 1999 11:09:26 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Paul Richards skrev i meddelandet ...
>Hi,
>I'm moving over from DJGPP to MS VC++ 6 and I came across a small
>problem.  DJGPP accepts this:
>
>int a[20];
>int b[20];
>//...Do stuff...
>a=b;
>
>But MSVC coughs up on the last line with this:
>"error C2106: '=' : left operand must be l-value"
>
>Any ideas on how to fix it?  For the moment I'm just replacing "a=b"
>with a small loop to do the job.


If DJGPP accepts this, it's a non-standard extension.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019