[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ddd 3.3 logplayer.C compilation problem.

From: R. Clayton
Subject: ddd 3.3 logplayer.C compilation problem.
Date: Mon, 28 Oct 2002 12:35:53 -0500 (EST)

  ro uname -a
  Linux rockhopper 2.4.18-5smp #1 SMP Mon Jun 10 15:19:40 EDT 2002 i686 unknown

  ro g++ -v
  Reading specs from /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
  Configured with: ./configure --prefix=/usr/local/stow/gcc-3.2
  Thread model: posix
  gcc version 3.2

  ro make

  [much chatter deleted]

  c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/X11R6/include -DNDEBUG
  -O2 -g -W -Wall -trigraphs  -c logplayer.C

  [much chatter deleted]

  In file included from logplayer.C:46:
  /usr/local/lib/gcc-lib/../../include/c++/3.2/backward/fstream.h: At global
  /usr/local/lib/gcc-lib/../../include/c++/3.2/backward/fstream.h:38: using
     declaration `streampos' introduced ambiguous type `streampos'
  gmake[1]: *** [logplayer.o] Error 1
  gmake[1]: Leaving directory `/export/home/uf/rclayton/local/src/ddd-3.3/ddd'
  gmake: *** [all-recursive] Error 1


I fixed this by changing

  #include <iostream.h>
  #include <fstream.h>
  #include <stdlib.h>
  #include <stdio.h>
  #include <unistd.h>
  #include <ctype.h>


  #include <iostream>
  #include <fstream>
  #include <cstdlib>
  #include <cstdio>
  #include <unistd.h>
  #include <cctype>

  using std::ifstream;

near the indicated line in logplayer.C.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]