Hi,
Here's the thing: the Eternity persistence system does not
provide its own compilation phase for its source code: the
programmer simply has to copy some files to his codebase.
Here's the thing though: the author has a .cpp in the "src"
directory that contains the other .cpp files, "eternity.cpp",
which basically contains:
#include "dynamic.cpp"
#include "persist.cpp"
#include "persist_xml.cpp"
#include "xmlscanner.cpp"
The directory hierarchy of the package is something like this:
$ ls
include/ src/ doc/ test/ examples/ etc...
Thing is though, in the 'example' directory ("cd examples"), it
gets compiled by GCC like this:
g++ -c -I../include ../src/eternity.cpp
The 'dynamic.cpp' etc. files are all picked up automatically
without specifying a '-I' argument. Is this standard behaviour?
Thanks,
Asfand Yar
--
http://www.it-is-truth.org/