Newsgroups: comp.parallel.pvm
From: pkohli@cc.gatech.edu (Prince Kohli)
Subject: Re: ILLEGAL INSTRUCTION !!HELP!!
Organization: College of Computing, Georgia Tech.
Date: 22 Nov 1994 13:53:53 -0500
Message-ID: <3ateo1$5l2@excepcion.cc.gatech.edu>


In article <3atda2$6jq@taco.cc.ncsu.edu>, krbailey@eos.ncsu.edu (Kendall Robert Bailey) writes:
|> 
|> I solved my 'illegal instuction' problem.  Unfortunately the solution
|> doesn't make a lot of sense.  I had a global variable named 'close'
|> when I changed it to 'near' the code ran fine.
|> 
|> The following code consistently gave me a core dump at pvm_mytid()
|> 
|> #include <stdio.h>
|> #include <stdlib.h>
|> #include "pvm3.h"
|> 
|> double close;
|> int mytid;
|> 
|> main() {
|>   close = 10.0;
|>   mytid = pvm_mytid();
|>   printf("mytid is %d\n",mytid);
|>   pvm_exit();
|> }
|> 
|> Can anyone tell me why??

The problem is that "close" is a reserved word. Use any other
variable name (like close_out or something) and it will work.

Cheers,

-Prince

