Usenet.com

www.Usenet.com

Group Index

Rec Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Need code debugging/compiling help



Dayton wrote:
I'm running CircleMud3.1 with OasisOLC 2.0.4 and DG Scripts Version
0.99 Patch Level 11.  I'm trying to add races and 128 patch.  When I
compile I get the following:

gcc -g -O2 -Wall    -c -o act.comm.o act.comm.c
act.comm.c: In function `is_tell_ok':
act.comm.c:231: invalid operands to binary &
act.comm.c:237: invalid operands to binary &
act.comm.c: In function `do_write':
act.comm.c:429: subscripted value is neither array nor pointer
act.comm.c: In function `do_gen_comm':
act.comm.c:535: invalid operands to binary &
act.comm.c:580: invalid operands to binary &
make[1]: *** [act.comm.o] Error 1


If I download the circle3.1+goodies file (which has 128/races) and
compare act.comm.c it looks exactly the same as mine and it compiles. What is going on?


What do I need to check/fix to get this to work properly?

Without seeing the part of your code that fails, it's not possible to guess what might be wrong with it... but I'll guess anyways.


You MIGHT have tried to do bitwise &'s and forgotten to put the righthand side, or tried to use that operator on a string or other incompatible type.

You also MIGHT have made a typo when trying to pass a reference to a pointer by putting a space between the & and the variable name.

That's my 2 cents anyways...
:)




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.