using #ifndef
From: John Hanley (jdhanley_at_telusplanet.net)
Date: 08/26/04
- Next message: Richard Tobin: "Re: using #ifndef"
- Previous message: ashish: "#def question"
- Next in thread: Richard Tobin: "Re: using #ifndef"
- Reply: Richard Tobin: "Re: using #ifndef"
- Reply: Gordon Burditt: "Re: using #ifndef"
- Reply: Keith Thompson: "Re: using #ifndef"
- Reply: E. Robert Tisdale: "Re: using #ifndef"
- Reply: ChokSheak Lau: "Re: using #ifndef"
- Reply: Karthiik Kumar: "Re: using #ifndef"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 25 Aug 2004 16:05:58 -0600
I have a program where both my main.c and program.c files use the program.h
file. So I #include "program.h" in both the .c files. The program.h file
has
#ifndef PROGRAM_H
#define PROGRAM_H
...
#endif
Yet when I build my program, the DJGPP compiler tells me there are multiple
definitions of each of my functions.
Any ideas as to what I doing wrong here?
Thanks!
John
- Next message: Richard Tobin: "Re: using #ifndef"
- Previous message: ashish: "#def question"
- Next in thread: Richard Tobin: "Re: using #ifndef"
- Reply: Richard Tobin: "Re: using #ifndef"
- Reply: Gordon Burditt: "Re: using #ifndef"
- Reply: Keith Thompson: "Re: using #ifndef"
- Reply: E. Robert Tisdale: "Re: using #ifndef"
- Reply: ChokSheak Lau: "Re: using #ifndef"
- Reply: Karthiik Kumar: "Re: using #ifndef"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|