[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error compiling ddd 3.3.1
From: |
J.H.M. Dassen (Ray) |
Subject: |
Re: Error compiling ddd 3.3.1 |
Date: |
Mon, 12 Nov 2001 19:36:36 +0100 |
User-agent: |
Mutt/1.3.23i |
On Mon, Nov 12, 2001 at 11:57:54 +0100, Maurizio Loreti wrote:
> In file included from logplayer.C:46:
> /home/loreti/include/g++-v3/backward/fstream.h:38: using directive
> `streampos' introduced ambiguous type `streampos'
> make[1]: *** [logplayer.o] Error 1
This patch fixed compilation with g++ 3.0.1 for me:
--- ddd-3.3.1.orig/ddd/logplayer.C
+++ ddd-3.3.1/ddd/logplayer.C
@@ -33,6 +33,8 @@
#pragma implementation
#endif
+#include <fstream.h>
+
#include "logplayer.h"
#include "assert.h"
@@ -43,7 +45,6 @@
#include "streampos.h"
#include <iostream.h>
-#include <fstream.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
(i.e. put the <fstream.h> #include before the local includes)
HTH,
Ray
--
Do Microsoft's TCO calculations include TC of downtime?