delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/13/22:45:15

Message-ID: <362410B8.CE1@golden.net>
Date: Tue, 13 Oct 1998 22:47:20 -0400
From: Gloria <lucjack AT golden DOT net>
X-Mailer: Mozilla 3.04 (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
CC: djgpp AT delorie DOT com
Subject: Multi-modules
Reply-To: djgpp AT delorie DOT com

If anyone has read vol.II of "C for Dummies", you'll probably understand
my question a little easier. I was working through the final madlib
program(madlib2). But I had a problem when I tried to make an .exe out
of the three files. Each of the modules used some pointer variables
which were defined in two of the modules like this:

extern char *whatever;
extern char *whatever2;

void print_array()
{
 .....


and so on. However, when I tried to compile, it kept saying that it
couldn't find those pointers. Is there a different way to indicate that
the variables are somewhere else in the program other than "extern". Oh
yeah, I tried removing the extern thing and I got some really weird
error messages. SOS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019