Subject: Re: problems compiling c++ source
To: Ethan Bakshy <ethan@enteract.com>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 09/06/1999 09:10:11
On Sun, 5 Sep 1999, Ethan Bakshy wrote:

> > I did get rid of
> > #include "apvector.cpp"
> > from apvector.h before doing that though, and it compiled cleanly with no
> > mention of assert.h.

> why would i remove that? if i need to compile an application that
> uses the apvector class, I can just do an #include "apvector.h",
> and have it take care of the apvector.cpp for me...

Including ".cpp" files in headers sounds kind of backwards to me.
Typically, you make the actual code available to your app when you
link in the library, or if not that, compile apvector.o from
apvector.cpp and link _that_ in.