I've patched in the DG Script with OasisOLC 6.a for Circle3.0 pl 12, but when I try and compile
it, it get's a couple of errors. The errors are prob. real simple, but seeing how I can be
considered a complete newbie to when it comes to C... well, you know.
Anyways, here is the error that I get when I try to compile it... it get's them in dg_comm.c
cl /nologo /I. /IL:\MSDEVSTD\INCLUDE /c dg_comm.c
dg_comm.c
dg_comm.c(157) : warning C4133: '=' : incompatible types - from 'struct obj_data
*' to 'struct char_data *'
dg_comm.c(175) : error C2065: 'sleep' : undeclared identifier
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Here is the code in dg_comm.c around those lines.
find_invis ? (obj = get_obj(name)) :
((obj = get_obj_in_list_vis(ch, name,
world[IN_ROOM(ch)].contents)) ? obj :
(obj = get_object_in_equip_vis(ch, name,
ch->equipment, &tmp)) ? obj :
(obj = get_obj_in_list_vis(ch, name,
ch->carrying))); // LINE 157
(obj_data *)otokens[i] = obj;
tokens[++i] = ++s;
break;
case '\\':
p++;
*s++ = *p++;
break;
default:
*s++ = *p++;
}
}
*s = '\0';
tokens[++i] = NULL;
if (IS_SET(targets, TO_CHAR) && SENDOK(ch)) // LINE 175
sub_write_to_char(ch, tokens, otokens, type);
If it helps any, I'm compiling with MSVC++ 4.0. I'd appreciate any help I can get. Thanks for
your time.
+------------------------------------------------------------+
| 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/15/00 PST