Re: [Code][Newbie][MSVC]Compiling error.

From: Richard Glover (magik@thegrid.net)
Date: 02/03/99


Basically move the:

struct obj_data *holding = GET_EQ(ch, WEAR_HOLD);

to the top of your function where variable declarations are supposed to be.

Rick

-----Original Message-----
From: George <greerga@circlemud.org>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Wednesday, February 03, 1999 3:25 PM
Subject: Re:  [Code][Newbie][MSVC]Compiling error.


>On Wed, 3 Feb 1999, anthony benjamin wrote:
>
>>C:\circle30bpl14\src\fight.c(932) : error C2143: syntax error : missing
>>';' before 'type'
>
>C is not C++. You cannot place variables declarations randomly inside
>functions. Yet, C9x.
>
>And I find the 'yet' extremely unsettling and the wrong step to go.
>
>--
>George Greer
>greerga@circlemud.org
>http://www.circlemud.org/~greerga/


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



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