Article View: alt.msdos.programmer
Article #287Setting up a project in TC++
From: Raoul Said
Date: Thu, 10 Sep 1992 21:41
Date: Thu, 10 Sep 1992 21:41
6 lines
886 bytes
886 bytes
I would like to know the best way to set up include files in a project. The problem I have is that say I make a module called foo.c which the main.c uses. In main.c I say #include "foo.h" and foo.c is also listed in the project file. But since I also include foo.h within foo.c the compiler says there are duplicate declarations! Am I doing something wrong? I need the info in foo.h for both main.c and foo.c, how do I do this? Thanks.
Technical Details
Message-ID:
<1992Sep10.214157.18067@CS.ORST.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!batcomputer!reed!orstcs!orstcs!usenetusenetShow Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!batcomputer!reed!orstcs!orstcs!usenetusenet From: saidra@prism.CS.ORST.EDU (Raoul Said) Subject: Setting up a project in TC++ Message-ID: <1992Sep10.214157.18067@CS.ORST.EDU> Sender: usenet@CS.ORST.EDU Nntp-Posting-Host: prism.cs.orst.edu Organization: Oregon State University, Computer Science Dept. Date: Thu, 10 Sep 1992 21:41:57 GMT Lines: 8