On Mon, 24 Nov 1997, dmodem wrote: >fight.c(545) : error C2065: 'obj_index' : undeclared identifier >fight.c(545) : error C2109: subscript requires array or pointer type >fight.c(545) : error C2224: left of '.virtual' must have struct/union type > if (GET_OBJ_VNUM(invobj) == GET_OBJ_VAL(weap_obj, 0)) { >as you can see obj_index (which I believe to be the root of all my >troubles) isn't on that line. but it is in the define for GET_OBJ_VNUM(). >#define GET_OBJ_VNUM(obj) (GET_OBJ_RNUM(obj) >= 0 ? \ Think of #deinfe as a substitution. The compiler never sees GET_OBJ_VNUM(invobj), it sees 'obj_index[invobj]' or whatever else that line expands to. So when you have an undefinied identifier on that line, some macro (maybe 5 levels down) uses that variable and you have to define it correctly. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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