[Circle] [CODE][Offtopic?] Bounds checking with GCC

From: Rasmus 'Con' Ronlev (raro94ab@hp4.econ.cbs.dk)
Date: 11/30/96


Hi,

With the help and helpfull sugestions from this list a week or so ago,
mainly powered by another dane, I have downloaded a patch for GCC that
will do something as fancy as 'bounds-checking'. This seems like one out
of a few other things I'm installing on the server that runs the mud, that
will enable me of finding the bugs that have creeped into my code. I
wouldn't say it's all the fault of snippets though *g* (Meaning I only
used the easy-color and Oasic pack from the ftp site). So, all the bugs
are more or less my doing I'd say. I successfulyl compiled gcc 2.7.2.1
with a patch with this bounds-checking, and now I get some interesting
error messages, which I though someone might be able to tell me what means
(from a GCC point of view), so I can try and fix what gcc is complaining
about. When I run make (with the extra parameter to gcc :
-fbounds-checking) :

/usr2/exiled/src/comm.c:2064: undefined reference to
'__bounds_check_componnet_reference'

and stuff like that, i.e. undefined reference to '__bounds_xxxxx'.
I did not add any code associated with the boundschecking thing, and if I
ommit the -fbounds-checking the source compiles and runs just as nice as
allways (with the normal crashes *G*). So, anyone knows what the
errormessage from gcc means ?

Oh, and while I'm at it. How do I redirect the output from make to a pipe,
so I can page the output with more and/or less ??

make |more and make |less only spammed me off the screen, and ended up
with nothing in neither the more pager or in the less proggy.

Any help appreciated,
Con.

d.
--
     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab
     Student instructor         MUD: exiled.mud.circlemud.org 5000
                                         199.199.16.100 5000
       Student, B.Sc in Computer Science and Business Administration.

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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