delorie.com/archives/browse.cgi | search |
From: | "KECSKEMÉTI BALÁZS" <balazs AT tiszanet DOT hu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Problem with header files |
Date: | Wed, 27 Jan 1999 20:53:46 +0100 |
Organization: | MatavNet |
Lines: | 47 |
Message-ID: | <78nqug$mok$1@bolka.matav.net> |
NNTP-Posting-Host: | ppp137.tiszanet.hu |
X-Trace: | bolka.matav.net 917466896 23316 195.228.98.137 (27 Jan 1999 19:54:56 GMT) |
X-Complaints-To: | abuse AT matav DOT net |
NNTP-Posting-Date: | 27 Jan 1999 19:54:56 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.2106.4 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi! I got problems with header files. The compiler complains about multiple declarations (_lot_ of error messages), and i don't know, why. I did this: PROG.HPP: ---------------- /* my header file */ #ifndef PROG_HPP #define PROG_HPP /* ...stuff... */ #endif PROG.CC: --------------- /* secondary module */ #include <stdio.h> #include "prog.hpp" /* ...stuff... */ TESTPROG.CC: ------------------------ /* main module */ #include "prog.hpp" /* ... stuff ... */ int main() { /* ... stuff ... */ } I also used an external COFF file. So i typed this: GCC TESTPROG.CC PROG.CC EXTMOD.O I really didn't declare things more than once. Please help me with this thing. Thanks in advance. Kecskemeti Balazs balazs AT tiszanet DOT hu
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |