Okay...
I am not a C programmer (yet) but I've been doing many changes to a Rom
source code on my linux partiton, compiling it, playing with it, and slowly
learning both C and the Rom source layout.
I've been doing this for some time and allready learnt many things.
Straight to the point:
I've run through act_info.c doing some light changes, like adding color to
some strings, modifying others and organizing the source file tabbing and
identing to my like.
I have did it to other files and all went ok (Compiled and all)
When I finished this one (act_info.c), it doesn't compile this file anymore.
I tried to substitute for an older backup of act_info.c and it works. So the
problem is just this file...
Well I've done lots of typing to this file and if someone could help me out
there... Here goes the compiler output...
[EMAIL PROTECTED] /root]# cd myd
bash: cd: myd: Arquivo ou diretório não encontrado
[EMAIL PROTECTED] /root]# cd mud/sec
bash: cd: mud/sec: Arquivo ou diretório não encontrado
[EMAIL PROTECTED] /root]# cd mud/src
[EMAIL PROTECTED] src]# make
14:02:41 : Compiling act_info.c...
cc1plus: warnings being treated as errors
act_info.c: In function `void do_look(CHAR_DATA *, char *)':
act_info.c:1007: warning: unused variable `int door'
act_info.c:1003: warning: unused variable `struct EXIT_DATA * pexit'
act_info.c:1006: warning: `char * pdesc' might be used uninitialized in this
function
act_info.c: At top level:
act_info.c:1170: parse error before `for'
act_info.c:1170: syntax error before `!='
act_info.c:1170: ANSI C++ forbids declaration `obj' with no type
act_info.c:1170: base operand of `->' is not a pointer
act_info.c:1170: parse error before `)'
act_info.c:1182: ANSI C++ forbids declaration `pdesc' with no type
act_info.c:1182: `arg3' was not declared in this scope
act_info.c:1182: base operand of `->' is not a pointer
act_info.c:1183: parse error before `if'
act_info.c:1194: `ch' was not declared in this scope
act_info.c:1194: ANSI C++ forbids declaration `chsend' with no type
act_info.c:1194: `int chsend' redeclared as different kind of symbol
proto.h:76: previous declaration of `void chsend(const char *, CHAR_DATA *)'
act_info.c:1194: initializer list being treated as compound expression
act_info.c:1195: parse error before `return'
act_info.c:1200: ANSI C++ forbids declaration `pdesc' with no type
act_info.c:1200: redefinition of `int pdesc'
act_info.c:1182: `int pdesc' previously defined here
act_info.c:1200: `arg3' was not declared in this scope
act_info.c:1200: `ch' was not declared in this scope
act_info.c:1201: parse error before `if'
act_info.c:1217: `buf' was not declared in this scope
act_info.c:1217: `ch' was not declared in this scope
act_info.c:1217: ANSI C++ forbids declaration `chsend' with no type
act_info.c:1217: redefinition of `int chsend'
act_info.c:1194: `int chsend' previously defined here
act_info.c:1217: initializer list being treated as compound expression
act_info.c:1218: parse error before `return'
act_info.c: In function `void do_examine(CHAR_DATA *, char *)':
act_info.c:1283: `chsend' cannot be used as a function
act_info.c:1322: `chsend' cannot be used as a function
act_info.c: In function `void do_exits(CHAR_DATA *, char *)':
act_info.c:1392: `chsend' cannot be used as a function
act_info.c: In function `void do_worth(CHAR_DATA *, char *)':
act_info.c:1403: `chsend' cannot be used as a function
act_info.c:1411: `chsend' cannot be used as a function
act_info.c:1415: `chsend' cannot be used as a function
act_info.c: In function `void do_score(CHAR_DATA *, char *)':
act_info.c:1425: `chsend' cannot be used as a function
act_info.c:1427: `chsend' cannot be used as a function
act_info.c:1429: `chsend' cannot be used as a function
act_info.c:1432: `chsend' cannot be used as a function
act_info.c:1435: `chsend' cannot be used as a function
act_info.c:1438: `chsend' cannot be used as a function
act_info.c:1440: `chsend' cannot be used as a function
act_info.c:1443: `chsend' cannot be used as a function
act_info.c:1446: `chsend' cannot be used as a function
act_info.c:1449: `chsend' cannot be used as a function
act_info.c:1452: `chsend' cannot be used as a function
act_info.c:1456: `chsend' cannot be used as a function
act_info.c:1458: `chsend' cannot be used as a function
act_info.c:1461: `chsend' cannot be used as a function
act_info.c:1469: `chsend' cannot be used as a function
act_info.c:1472: `chsend' cannot be used as a function
act_info.c:1474: `chsend' cannot be used as a function
act_info.c:1477: `chsend' cannot be used as a function
act_info.c:1480: `chsend' cannot be used as a function
act_info.c:1482: `chsend' cannot be used as a function
act_info.c: In function `void do_affects(CHAR_DATA *, char *)':
act_info.c:1495: `chsend' cannot be used as a function
act_info.c:1506: `chsend' cannot be used as a function
act_info.c:1513: `chsend' cannot be used as a function
act_info.c:1518: `chsend' cannot be used as a function
act_info.c:1521: `chsend' cannot be used as a function
act_info.c:1526: `chsend' cannot be used as a function
act_info.c: In function `void do_time(CHAR_DATA *, char *)':
act_info.c:1567: `chsend' cannot be used as a function
act_info.c:1571: `chsend' cannot be used as a function
act_info.c: In function `void do_weather(CHAR_DATA *, char *)':
act_info.c:1588: `chsend' cannot be used as a function
act_info.c:1596: `chsend' cannot be used as a function
act_info.c: In function `void do_oldhelp(CHAR_DATA *, char *)':
act_info.c:1778: `chsend' cannot be used as a function
act_info.c: In function `void do_whois(CHAR_DATA *, char *)':
act_info.c:1868: `chsend' cannot be used as a function
act_info.c:1896: `chsend' cannot be used as a function
act_info.c: In function `void do_who(CHAR_DATA *, char *)':
act_info.c:1965: `chsend' cannot be used as a function
act_info.c:2002: `chsend' cannot be used as a function
act_info.c: In function `void do_count(CHAR_DATA *, char *)':
act_info.c:2098: `chsend' cannot be used as a function
act_info.c: In function `void do_inventory(CHAR_DATA *, char *)':
act_info.c:2103: `chsend' cannot be used as a function
act_info.c: In function `void do_equipment(CHAR_DATA *, char *)':
act_info.c:2113: `chsend' cannot be used as a function
act_info.c:2116: `chsend' cannot be used as a function
act_info.c:2119: `chsend' cannot be used as a function
act_info.c:2124: `chsend' cannot be used as a function
act_info.c:2125: `chsend' cannot be used as a function
act_info.c:2129: `chsend' cannot be used as a function
act_info.c: In function `void do_compare(CHAR_DATA *, char *)':
act_info.c:2149: `chsend' cannot be used as a function
act_info.c:2155: `chsend' cannot be used as a function
act_info.c:2173: `chsend' cannot be used as a function
act_info.c:2180: `chsend' cannot be used as a function
act_info.c: In function `void do_where(CHAR_DATA *, char *)':
act_info.c:2255: `chsend' cannot be used as a function
act_info.c:2271: `chsend' cannot be used as a function
act_info.c:2275: `chsend' cannot be used as a function
act_info.c:2292: `chsend' cannot be used as a function
act_info.c: In function `void do_consider(CHAR_DATA *, char *)':
act_info.c:2314: `chsend' cannot be used as a function
act_info.c:2320: `chsend' cannot be used as a function
act_info.c:2326: `chsend' cannot be used as a function
act_info.c: In function `void do_title(CHAR_DATA *, char *)':
act_info.c:2387: `chsend' cannot be used as a function
act_info.c:2394: `chsend' cannot be used as a function
act_info.c:2400: `chsend' cannot be used as a function
act_info.c: In function `void do_description(CHAR_DATA *, char *)':
act_info.c:2419: `chsend' cannot be used as a function
act_info.c:2440: `chsend' cannot be used as a function
act_info.c:2441: `chsend' cannot be used as a function
act_info.c:2449: `chsend' cannot be used as a function
act_info.c:2463: `chsend' cannot be used as a function
act_info.c:2473: `chsend' cannot be used as a function
act_info.c:2474: `chsend' cannot be used as a function
act_info.c: In function `void do_report(CHAR_DATA *, char *)':
act_info.c:2487: `chsend' cannot be used as a function
act_info.c: In function `void do_practice(CHAR_DATA *, char *)':
act_info.c:2522: `chsend' cannot be used as a function
act_info.c:2524: `chsend' cannot be used as a function
act_info.c:2528: `chsend' cannot be used as a function
act_info.c:2532: `chsend' cannot be used as a function
act_info.c:2541: `chsend' cannot be used as a function
act_info.c:2554: `chsend' cannot be used as a function
act_info.c:2560: `chsend' cannot be used as a function
act_info.c:2570: `chsend' cannot be used as a function
act_info.c:2580: `chsend' cannot be used as a function
act_info.c: In function `void do_wimpy(CHAR_DATA *, char *)':
act_info.c:2626: `chsend' cannot be used as a function
act_info.c:2632: `chsend' cannot be used as a function
act_info.c:2638: `chsend' cannot be used as a function
act_info.c: In function `void do_password(CHAR_DATA *, char *)':
act_info.c:2698: `chsend' cannot be used as a function
act_info.c:2705: `chsend' cannot be used as a function
act_info.c:2712: `chsend' cannot be used as a function
act_info.c:2725: `chsend' cannot be used as a function
act_info.c:2733: `chsend' cannot be used as a function
make: *** [act_info.o] Error 1
[EMAIL PROTECTED] src]#
_________________________________________________________________
Converse com seus amigos online, faça o download grátis do MSN Messenger:
http://messenger.msn.com.br