This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcjh, Headers hierarchy and namespaces
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Florian Bourgier <fbourgier at sycomore-multimedia dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 19 Jul 2004 12:06:07 -0400
- Subject: Re: gcjh, Headers hierarchy and namespaces
- References: <40FBD8B6.3040304@sycomore-multimedia.com>
Florian Bourgier wrote:
Indeed, my Java classes were organized in package and I had a tree. So
I would have liekd to keep the same tree for the headers. But when I
want to include a file like this :
#include "AtomicRecord.h"
int main()
{}
the headers cannot be found. And if I write
"D:\test\Partie3-Envt_natif\gcj-gcjh\com\eadstelecom\framework\data\AtomicRecord.h"
Then I have the error that Lockable cannot be found un com/eads/etc...
How can I solve this ?
Can I keep my tree ? I have to because if not, there will be classes
with the same name and this is impossible .
How can I say to search under a directory for the headers ?
Use <>'s instead of ""'s. ie:
#include <com/eadstelecom/framework/data/AtomicRecord.h>
Then make sure that the base directory (ie the one that contains "com")
is included with -I when invoking g++.
Regards
Bryce