LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Errors while compiling (https://www.linuxquestions.org/questions/linux-software-2/errors-while-compiling-699021/)

pita0017 01-21-2009 09:32 PM

Errors while compiling Soundtouch
 
Hello, I've encountered some errors while compiling Soundtouch. I've tried Googling the errors and have come up empty. Anyone steer me in the right direction?

Thanks in advance for responses.

Code:

if g++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include  -O3 -I../bpm  -MT soundstretch-WavFile.o -MD -MP -MF ".deps/soundstretch-WavFile.Tpo" -c -o soundstretch-WavFile.o `test -f 'WavFile.cpp' || echo './'`WavFile.cpp; \
        then mv -f ".deps/soundstretch-WavFile.Tpo" ".deps/soundstretch-WavFile.Po"; else rm -f ".deps/soundstretch-WavFile.Tpo"; exit 1; fi
WavFile.cpp: In member function âint WavInFile::checkCharTags()â:
WavFile.cpp:200: error: âmemcmpâ was not declared in this scope
WavFile.cpp:202: error: âmemcmpâ was not declared in this scope
WavFile.cpp: In member function âint WavInFile::readRIFFBlock()â:
WavFile.cpp:353: error: âmemcmpâ was not declared in this scope
WavFile.cpp:355: error: âmemcmpâ was not declared in this scope
WavFile.cpp: In member function âint WavInFile::readHeaderBlock()â:
WavFile.cpp:375: error: âstrcmpâ was not declared in this scope
WavFile.cpp:380: error: âmemcpyâ was not declared in this scope
WavFile.cpp:419: error: âmemcpyâ was not declared in this scope
WavFile.cpp: In member function âint WavInFile::readWavHeaders()â:
WavFile.cpp:450: error: âmemsetâ was not declared in this scope
WavFile.cpp: In member function âvoid WavOutFile::fillInHeader(uint, uint, uint)â:
WavFile.cpp:552: error: âmemcpyâ was not declared in this scope
WavFile.cpp: In member function âvoid WavOutFile::write(const short int*, int)â:
WavFile.cpp:674: error: âmemcpyâ was not declared in this scope
make[3]: *** [soundstretch-WavFile.o] Error 1
make[3]: Leaving directory `/usr/src/soundtouch-1.3.1-jart/source/example/SoundStretch'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/soundtouch-1.3.1-jart/source/example'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/soundtouch-1.3.1-jart/source'
make: *** [all-recursive] Error 1


jdkaye 01-22-2009 02:34 AM

Hi Pita,
I tried compiling soundtouch ver. 1.3.1 on my Debian lenny box and I got exactly the same errors at exactly the same place:
Code:

if g++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include  -O3 -I../bpm  -MT soundstretch-WavFile.o -MD -MP -MF ".deps/soundstretch-WavFile.Tpo" -c -o soundstretch-WavFile.o `test -f 'WavFile.cpp' || echo './'`WavFile.cpp; \
        then mv -f ".deps/soundstretch-WavFile.Tpo" ".deps/soundstretch-WavFile.Po"; else rm -f ".deps/soundstretch-WavFile.Tpo"; exit 1; fi
WavFile.cpp: In member function 'int WavInFile::checkCharTags()':
WavFile.cpp:200: error: 'memcmp' was not declared in this scope
WavFile.cpp:202: error: 'memcmp' was not declared in this scope

It may be a gnu c-compiler version issue? I'd suggest sending the compiling errors to the developer, Olli Parviainen. You can find contact details here: http://www.surina.net/olli_personal.html
Cheers,
jdk

knudfl 01-22-2009 10:32 AM

Welcome to Linux Questions.

http://www.surina.net/soundtouch/README.html
Quote:

2.2. Building in Gnu platforms
The SoundTouch library can be compiled in practically any platform
supporting GNU compiler (GCC) tools. SoundTouch have been tested
with gcc version 3.3.4.
This software is from 2006, written for gcc-3.3.x .

'soundtouch-1.3.1' will also compile with g++-4.1 ,
available on Debian Lenny and Ubuntu, CentOS. For Fedora :
# 'yum search compat-gcc'
# 'yum install compat-gcc-c++'

Using the "different" compiler, example :
'make CXX=g++-4.1' ( Replace with actual /usr/bin/g++... )
.....

There are packages for Debian, Ubuntu :
'soundstretch' , 'libsoundtouch1c2'
....

Good luck.
....

pita0017 01-22-2009 08:18 PM

Worked perfectly using compat-gcc-3.4. Thanks for your help. :D


All times are GMT -5. The time now is 10:07 AM.