ccaudio-devel
[Top][All Lists]
Advanced

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

[Ccaudio-devel] Re: Bug#163282: libccaudio_1.0.2-1(hppa/unstable): FTBFS


From: Jason Spence
Subject: [Ccaudio-devel] Re: Bug#163282: libccaudio_1.0.2-1(hppa/unstable): FTBFS: g++ 3.0 errors
Date: Sun, 6 Oct 2002 00:48:45 -0700
User-agent: Mutt/1.2.5i

On Sun, Oct 06, 2002 at 05:02:08PM +1000, Mark Purcell wrote: 
> [ For ccaudio-devel and others I am having problem building the new
> wavetest[1-2].cpp under g++-3.0. Mainly namespace assumptions for
> which I have included a patch, but I am also having a problem with ifstream.
> Full details are available at http://bugs.debian.org/163282. ]
> 
> The remaing issue is with the following code in both wavetest1.cpp and 
> Wavetest2.cpp.
> 
>   /* Open the file and read the header */
>   std::ifstream file("test.wav");
>   for(i = 0; i < CORRECT_BUF_SIZE; ++i)
>     file.read((buf + i), 1);
>   file.close();
> 
> When compiling with g++-3.0 it bombs out with the following:
[snip]
> Can anyone provide advice how this should work under g++-3.0?

Turns out that g++ won't let me use an unsigned char * as an argument
to ifstream::read, so I converted all the data structures to use char
* instead.  I've just committed the fix to CVS - David beat me to it
with a one-liner by 23 seconds :(  If I wasn't watching anime on
Cartoon Network I'd have gotten it done faster :)

Hey, wait a minute - isn't it like 3:50 AM your time, David?  Get some
sleep, man! :)

-- 
 - Jason                              Currently at: Home (Fremont, CA) (Fair )

Fairy Tale, n.:
        A horror story to prepare children for the newspapers.




reply via email to

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