[CLAM] Windows XP Compile Problems

Chris Share s1922903 at qub.ac.uk
Tue Aug 3 08:18:56 PDT 2004


Hi,

I'm a research student at the Sonic Arts Research Centre in Belfast,
U.K.

I'm interested in using CLAM as part of my research in ways of extending
sampling synthesis. I'm particularly interested in SALTO and would like
to get it running.

I have a "medium" level of programming experience however I've never
worked with anything as large or as complex as CLAM.

I'm working on Windows XP using Visual C++.NET 2002 (VC++ 7.0).

I've been working my way through the CLAM RELEASE 0.6.1 USER AND
DEVELOPMENT DOCUMENTATION. I've managed to get the srcdeps project to
compile however I'm having some problems getting the SMSTools2
application to compile (section 15.1 of the tutorial).

I'm getting the following errors:


c:\Documents and Settings\Chris Share\Desktop\Extending
Sampling\Analysis Resynthesis
Software\SMS\CLAM\0.6.1\CLAM\CLAM-0.6.1\src\Defines\CLAM_Math.hxx(30) :
error C2995: 'std::max' : template function has already been defined
        c:\Program Files\Microsoft Visual Studio
.NET\Vc7\include\xutility(1338) : see declaration of 'std::max'
c:\Documents and Settings\Chris Share\Desktop\Extending
Sampling\Analysis Resynthesis
Software\SMS\CLAM\0.6.1\CLAM\CLAM-0.6.1\src\Defines\CLAM_Math.hxx(34) :
error C2995: 'std::min' : template function has already been defined
        c:\Program Files\Microsoft Visual Studio
.NET\Vc7\include\xutility(1353) : see declaration of 'std::min'


c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(1353)
: error C2780: 'const _Ty &std::min(const _Ty &,const _Ty &,_Pr)' :
expects 3 arguments - 2 provided
        c:\Program Files\Microsoft Visual Studio
.NET\Vc7\include\xutility(1361) : see declaration of 'std::min'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(1353)
: error C2893: Failed to specialize function template 'const T
&std::min(const T &,const T &)'
        With the following template arguments:
        'int'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(1353)
: error C2065: 'min' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(1353)
: error C2143: syntax error : missing ')' before 'const'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(1353)
: error C2059: syntax error : ')'


The first error looks like it's happening due to a conflict between a
definition in Visual Studio and one in CLAM.

The second one seems to happen as a result of the first (?).

Also, after the project has compiled I get a message saying that the
project has been modified outside the environment and asking me if I
want to reload it. If I click OK the load process fails as the new
project is for VC++ 7.1 which VC++ 7.0 cannot load.

Any help with this, especially the errors, would be much appreciated.

Cheers,

Chris Share






More information about the clam-users mailing list