Mail Archives: djgpp/1998/10/14/19:00:42
Gloria wrote:
>
> 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
I tried the program again today. The file with the main() function was
empty for some reason. So I compiled all of them and the program worked
fine! Maybe, for some reason, DJGPP didn't register it as being there
yesterday. I dunno, just one of those things.
- Raw text -