Re: Aedit and a '=' error in line 305 usign MSVC++ 5 on a '95 machine.

From: Robert Sinland (rsinland@ERSKINE.POLARISTEL.NET)
Date: 08/24/97


Toxic Twin wrote:
>
> I have a win '95 machine and recently patched in aedit.  when I go and
> nmake it the compiler stops at line 305 cnad shows teh following:
>
> Microsoft (R) Program Maintenance Utility   Version 1.62.7022
> Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
>
>         cl -c /nologo /I. /I\MSDEV\INCLUDE act.social.c
> act.social.c
> act.social.c(305) : error C2106: '=' : left operand must be l-value
> NMAKE : fatal error U1077: 'C:\MSDEV\VC\BIN\cl.exe' : return code '0x2'
> Stop.
>
> D:\DragonsBane\circle30bpl11\src>
>
> The line in my code look like the following:
>
> /*count the commands in the command list */
>  i = 0;
>  while(*cmd_info[i].command != '\n') i++;
>  i++;
>
>  CREATE(complete_cmd_info, struct command_info, top_of_socialt + i + 2);
>
> the CREATE line is line 305 and the error seems to be settled around the
> 'top_of_socialt + i + 2);' part
> Can anyone tell me what is so obvious here that I can't see it?  Thanks.

Looks the same as mine.. might be something farther  up in the func.

     /* count the commands in the command list */
     i = 0;
     while(*cmd_info[i].command != '\n') i++;
     i++;

     CREATE(complete_cmd_info, struct command_info, top_of_socialt + i +
2);

You do have this at the top right?
   int i, j, k;
RS


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST