using #ifndef

From: John Hanley (jdhanley_at_telusplanet.net)
Date: 08/26/04


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



Relevant Pages

  • [PATCH 15/19] dmaengine: raid5 dma client
    ... * Multiple bion are linked together on bi_next. ... memory copy operations are submitted to a memcpy channel and then ... * Some efficiency can be gained by putting the stripe back on the work ...
    (Linux-Kernel)
  • Re: Unable to permanently delete default/example pics in My Pictures
    ... A customer of mine using XP ... is trying to multiple select by holding the Ctrl ... It's somewhat easier if you have your Folder ... John Inzer ...
    (microsoft.public.windowsxp.photos)
  • Re: Linking Forms
    ... "John W. Vinson" wrote: ... together so if I'm working on one specific employee record, ... General Info, ER Contacts, Benefits, Salary Hx, ... I'm assuming that one employee will have multiple ER Contacts, ...
    (microsoft.public.access.forms)
  • Returning multiple indices for a lookup
    ... I have a table which contains a name in the first column and an ... John 1234 ... James 3456 ... How can I get VLOOKUP to return multiple indices? ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Capture Outlook Items events in VBA?
    ... John, to handle multiple Inspectors or Explorers you need a wrapper class. ... That class handles all the events for the Inspector or Explorer and is put ...
    (microsoft.public.outlook.program_vba)