This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem(?) with gcc version 3.0 20010313 (prerelease)


On Thu, Mar 15, 2001 at 09:23:47AM -0500, David Ronis wrote:
> I tried using the prerease compiler to build version 3.3 of ddd.  It
> dies in the configure step at:
> 
> configure:1679: checking whether the C++ compiler (/usr/bin/g++) compiles a simp
> le program
> configure:1700: /usr/bin/g++ -o conftest -O3 -march=i686 -ffast-math -funroll-lo
> ops -fomit-frame-pointer -fforce-mem -fforce-addr -malign-jumps=3 -malign-loops=
> 3 -malign-functions=3 -mpreferred-stack-boundary=3 -fpermissive   conftest.C  1>
> &5
> configure:1694:22: iostream.h: No such file or directory
> configure: In function `int main()':
> configure:1696: `cout' undeclared (first use this function)
> configure:1696: (Each undeclared identifier is reported only once for each 
>    function it appears in.)
> configure: failed program was:
> #line 1693 "configure"
> #include "confdefs.h"
> #include <iostream.h>
> int main() {
> cout << "hello, world!";
> ; return 0; }
> 
> 
> The problem is iostream.h, which is in /usr/include/g++-v3.  When I
> manually add -I/usr/include/g++-v3 to CXXFLAGS, I get
> 
<SNIP much configure output/errors>
> 
> Doesn't/Shouldn't 3.0 set a default include path for g++ that makes
> sense?  Also there seems to be a problem with the include files.

gbsadler@home-desktop:~/gcc-2001-03-14$ cat hello.cpp
#include <iostream.h>

int main ()
{
   cout << "Hello World!" <<endl;
}
gbsadler@home-desktop:~/gcc-2001-03-14$
LD_LIBRARY_PATH=/home/gbsadler/gcc-2001-03-14/lib/ bin/g++ hello.cpp
gbsadler@home-desktop:~/gcc-2001-03-14$
LD_LIBRARY_PATH=/home/gbsadler/gcc-2001-03-14/lib/ ./a.out
Hello World!
gbsadler@home-desktop:~/gcc-2001-03-14$
LD_LIBRARY_PATH=/home/gbsadler/gcc-2001-03-14/lib/ bin/g++ -v
Reading specs from bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../cvs/gcc-3.0/configure --prefix=/home/gbsadler/gcc-2001-03-14
gcc version 3.0 20010314 (prerelease)

Are you positive you have a complete installation, and ldconfig has been
run adding your libs to the cache.

As you can see no problems here.

Gordon Sadler


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]