Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!ra!uvaarpa!murdoch!murdoch.acc.virginia.edu!aj3u From: aj3u@agate.cs.virginia.edu (Asim Jalis) Newsgroups: comp.lang.c Subject: Global and Extern Pointers, Arrays Message-ID: Date: 23 May 91 01:26:42 GMT Sender: usenet@murdoch.acc.Virginia.EDU Distribution: comp Organization: University of Virginia, Charlottesville, VA 22903 Lines: 18 I just figured out the following bug in my program. I had a global array, with some initialized value that I was also declared an extern pointer in the other files that accessing it. This turns out to be a no-no. The bug went away when I changed the extern definition to an array also. Here is the code: file.1 struct x px[1] = { ... }; file.2 extern *px /* boinks */ extern px[] /* works */ Any ideas as to why this is? Asim Jalis.