This is the first time I try to make a project with the Autotools... and I have a problem.
Everything is all right when the source files are all in the same directory.
But if I want to distribute the files in different subdirectories, I have some errors from make.
This is what I do:
aclocal
autoconf
automake --add-missing
./configure
make
entrypoint.o: In function `main':
testprj/entrypoint.cpp:14: undefined reference to `C1::Print()'
I.e. it cannot find the class declaration in the file placed in a subdirectory.
The includes are correct.
The subdirectories are passed to configure.
I put a Makefile.am in every subdirectory.
What else is missing?
I'm afraid I cannot attach any file to this message.
Can anybody give me a hint?
Do you know where I can find documentation that explains how to make a project with source files distributed in a directory tree?
If you want I can send you the (very small) test project where I have this problem.
Thank you a lot for any help,
Pietro
pietromele@yahoo.com
2006.04.14