Mail Archives: djgpp/1998/10/13/22:45:15
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 -