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

Re: PFile compiles again



CATHY BURNS wrote:

>The problem is more likely to be due to passing an unsigned char* where
>a char* is expected. The solution is simply to cast the pointer to the

>  if (munmap(m_audio_buffer, m_size) == -1)
>
>Change this to
>
>  if (munmap((char*)m_audio_buffer, m_size) == -1)
>
>and tell me if that fixes the problem.

It does.

Now it complains in Esd.cpp that it doesn't find esd.h (of course it can't
because I don't have any E stuff installed. But it should compile
nevertheless). 
make -k shows some more problems. I attached a log (reduced
to the major items; there were also tons of "comparison between signed and
unsigned" and "shift count can be negative" warnings)


	Christian
-- 

Drive A: not responding...Formatting C: instead
Esd.cpp:4: esd.h: No such file or directory
make[2]: *** [Esd.o] Error 1
SampleAF.cpp:16: audiofile.h: No such file or directory
make[2]: *** [SampleAF.o] Error 1
Sequencer.cpp: In method `long unsigned int pp::internal::Sequencer::GetPosition(int)':
Sequencer.cpp:476: warning: control reaches end of non-void function `pp::internal::Sequencer::GetPosition(int)'
Sequencer.cpp: In method `int pp::internal::Sequencer::GetVoice(int)':
Sequencer.cpp:496: warning: control reaches end of non-void function `pp::internal::Sequencer::GetVoice(int)'