LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-21-2009, 10:32 PM   #1
pita0017
LQ Newbie
 
Registered: Mar 2005
Distribution: CentOS, Fedora Core
Posts: 2

Rep: Reputation: 0
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

Last edited by pita0017; 01-22-2009 at 10:39 PM.
 
Old 01-22-2009, 03:34 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,957

Rep: Reputation: Disabled
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
 
Old 01-22-2009, 11:32 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,263

Rep: Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660Reputation: 2660
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.
....

Last edited by knudfl; 01-22-2009 at 01:03 PM.
 
Old 01-22-2009, 09:18 PM   #4
pita0017
LQ Newbie
 
Registered: Mar 2005
Distribution: CentOS, Fedora Core
Posts: 2

Original Poster
Rep: Reputation: 0
Worked perfectly using compat-gcc-3.4. Thanks for your help.

Last edited by pita0017; 01-22-2009 at 10:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C Errors on compiling prashanthjj Fedora 11 04-24-2007 08:43 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Errors when compiling anything! adizzle Linux - Newbie 4 06-16-2004 06:27 PM
QT compiling errors slackwarefan Slackware 1 03-01-2004 08:45 PM
Errors compiling 2.6.0 plisken Linux - General 3 10-10-2003 06:12 PM


All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration