Newsgroup: google.public.programming-contest


Received: from smtp1.google.com (smtp1.google.com [216.239.33.27])
by aueb.gr (8.8.5/8.8.5) with ESMTP id SAA28834
for <dds@aueb.gr>; Tue, 12 Feb 2002 18:39:30 +0200 (EET)
Received: from sjins1.sj.google.com ([216.239.35.4])
by smtp1.google.com with ESMTP id IAA19118
for <dds@aueb.gr>; Tue, 12 Feb 2002 08:38:38 -0800
Received: from sjdd43.sj.google.com (sjdd43.prod.google.com [10.6.30.43])
by sjins1.sj.google.com (8.9.3/8.9.3) with ESMTP id IAA07205
for <dds@aueb.gr>; Tue, 12 Feb 2002 08:38:37 -0800
Received: (from root@localhost)
by sjdd43.sj.google.com (8.9.3/8.9.3) id IAA30366;
Tue, 12 Feb 2002 08:38:37 -0800
From: posting-system@google.com
Date: Tue, 12 Feb 2002 08:38:37 -0800
Message-ID: <1af18db.0202120838.1e77287f@posting.google.com>
Reply-To: posting-system@google.com
To: dds@aueb.gr
Subject: Re: compiling in windows with mingw
Errors-To: posting-system@google.com
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=ISO-8859-1
From: dds@aueb.gr (Diomidis Spinellis)
Newsgroups: google.public.programming-contest
Subject: Re: compiling in windows with mingw
References: <2824ab39.0202062111.78d62cd7@posting.google.com> <5eb5f216.0202091712.77011b70@posting.google.com>
NNTP-Posting-Host: 195.251.251.217
Message-ID: <1af18db.0202120838.827b29b@posting.google.com>
jwatts@jetcity.com (Josh Watts) wrote in message news:<5eb5f216.0202091712.77011b70@posting.google.com>...
> > Now.... anyone able to use ripper in windows?  I can't get it to read
> > in the data files correctly?  Do I need bzcat for windows or what?
> 
> There's a simple fix here. Replace the following line in ripper.cc
> 
> std::ifstream repstream((*repname).c_str());
> 
> with
>  
> std::ifstream repstream((*repname).c_str(), ios::binary);

This did not work for me (gcc version 2.95.2 19991024 (release)). 
However, I replaced
       std::ifstream repstream((*repname).c_str());
with
       std::fstream repstream((*repname).c_str(), ios::in |
ios::binary);
which worked without a problem.  

In the ripper source, I could not find any documentation on how it is
to be executed.  After you compile try:

ripper --cat ../data/pprepos-test

Diomidis 
http://www.dmst.aueb.gr/dds



Newsgroup google.public.programming-contest contents
Newsgroup list
Diomidis Spinellis home page

Creative Commons License Unless otherwise expressly stated, all original material on this page created by Diomidis Spinellis is licensed under a Creative Commons Attribution-Share Alike 3.0 Greece License.