Re: problem with multiple source file
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Tue, 08 Apr 2008 15:05:39 +0100
pereges <Broli00@xxxxxxxxx> writes:
I hae compiled and executed codes of vector.c, reader.c , test.c
seperately and they can be execute in proper manner and give correct
outputs but when i tried to integrate them all into a single project
using pelles C it is giving two many errors.
You could help people out with an error message!
You have got tied up in includes, trying to get common.h to do
everything. It can be done like that, but if when, say, test. include
common.h which needs reader.h which tries to get what it wants from
common.h (you just have to go thought this carefully by hand or using
something like gcc -E to see that it does not work).
Get rid of common.h and have every file include what it needs. You
can have one .h file that includes another if you like that style but
circular includes will tie you in knot.
--
Ben.
.
- Follow-Ups:
- Re: problem with multiple source file
- From: pereges
- Re: problem with multiple source file
- References:
- problem with multiple source file
- From: pereges
- problem with multiple source file
- Prev by Date: Re: How to make it faster?
- Next by Date: Re: Reading a table
- Previous by thread: Re: problem with multiple source file
- Next by thread: Re: problem with multiple source file
- Index(es):
Relevant Pages
|