[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Include problem
From: |
Zachary Deretsky |
Subject: |
Include problem |
Date: |
Thu, 3 May 2001 17:58:54 -0700 |
I am compiling on solaris and cons exits with this message:
cons.pl: you have attempted to use path "gandalf_obj/elrond/src/iostream"
both as a file and as a directory!
The problem is caused by this code fragment:
#ifdef GND_UNIX_HPUX
#include <iostream/iostream.h>
#else
#include <ostream.h>
#endif
It goes away if I just leave
#include <ostream.h>
Include path on solaris contains a directory which has both iostream and
iostream.h files.
There is no directory 'iostream' on solaris.
One problem is that dependency scanner apparently does not understand
#ifdef.
Another is that more subtle because I cannot create a small testcase, the
problem occures only in the context of a fairly large build.
Please advise if you have encounered similar problems.
Thanks, Zach