Newsgroups: comp.sys.amiga.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!johnhlee From: johnhlee@CS.Cornell.EDU (John H. Lee) Subject: Re: Help with EXTERN statement in C!!!! Message-ID: <1991Jun9.235352.15367@cs.cornell.edu> Sender: news@cs.cornell.edu (USENET news user) Nntp-Posting-Host: fulla.cs.cornell.edu Reply-To: johnhlee@cs.cornell.edu (John H. Lee) Organization: Cornell Univ. CS Dept, Ithaca NY 14853 References: <1991Jun9.132518.48043@cc.usu.edu> Date: Sun, 9 Jun 1991 23:53:52 GMT Lines: 17 In article <1991Jun9.132518.48043@cc.usu.edu> slmt9@cc.usu.edu writes: > This is a plea for help with C. The problem is in getting an external >variable to work. I defined a character array like this > > char names[5][20]={"name1","name2","name3","name4","name5"}; > > I then try to make this an extern variable from a section of code that >I am compiling seperately. Well it does not work at all. I have tried to >declare it in several ways and still I can not get it too work. Anyway Any and >All help would be greatly appriciated. "extern char names[5][20]" should work. What kind of errors are you getting? ------------------------------------------------------------------------------- The DiskDoctor threatens the crew! Next time on AmigaDos: The Next Generation. John Lee Internet: johnhlee@cs.cornell.edu The above opinions are those of the user, and not of this machine.