Path: utzoo!mnetor!uunet!husc6!linus!mbunix!bwk From: bwk@mitre-bedford.ARPA (Barry W. Kort) Newsgroups: comp.ai.neural-nets Subject: Re: Hopfield Neural Network Simulator Message-ID: <29304@linus.UUCP> Date: 15 Apr 88 20:22:39 GMT References: <1314@hubcap.UUCP> <10370001@hpcllmv.HP.COM> Sender: news@linus.UUCP Reply-To: bwk@mbunix (Barry Kort) Organization: The MITRE Corporation, Bedford, Mass. Lines: 27 Summary: Mystery solved. You can all return to work now. I, too, had to do a bit of detective work to fix hopfield.c: First of all, the pre-processor variables "MOD", "AND", "NOT", and "OR" are defined in "local.h", except that they are spelled "Mod", "And", "Not", and "Or". I converted them to ALL UPPER CASE in "local.h" and that problem disappeared. Secondly, I guessed at the link libraries needed to resolve the external function calls. They turned out to be the math lib (-lm), the term lib (-ltermlib) and the curses lib (-lcurses). I have added the following comment to my copy of hopfield.c so that future users don't have to go into Sherlock mode to compile it: /* To Compile: cc -o hopfield hopfield.c -lm -lcurses -ltermlib */ I enjoy playing with interesting software like hopfield.c, but life would be easier if the creators of such programs would include comments on compilation, run-time switches, etc. Now if I could only figure out the rest of the story behind Hopfield Networks, I would understand what the program does! :-) --Barry Kort