Discussion:
[clam-devel] Building error!
David García Garzón
2014-02-12 19:53:56 UTC
Permalink
This settings.cfg file is something from the past. And this message can
be considered a bug.

Provided that you are using SCons, you need to set with_sndfile flag on
the scons command line.

I recommend you to install such library (libsndfile) and set the flag to
1 unless you have strong reasons not to do so. That library provides the
ability to load and save many common audio file formats: WAV, AIFF, AU...

David.
Hi David,
thank you for your reply!
I'm using Xcode gcc, version 5.0 (clang 500.2.79). You were totally
right, I changed the file, it works. Now, I just had an error about
In file included from
In file included from
USE_SNDFILE was not set to 1 in your settings.cfg file, but you are
including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
I can't find this file under my workdir, just in the source file. Can
you help me with this too, please?
Even if it's not a priority, there is a way to shutdown or solve the
annoying warnings?
Il giorno 25/nov/2013, alle ore 02:15, David Garc?a Garz?n
Your compiler (which one is it?) is right. That method, CheckAttribute,
should be static in order to be called without a 'this'.
Should be fixed on subversion revision 15443.
http://clam-project.org/clam/trunk/CLAM/src/core/base/DynamicTypeMacros.hxx
Full CLAM recompilation required.
In Gcc, this template code is just instantiated when you set up a clam
dynamic type with bad indexes. Maybe your compiler is smarter or maybe
your testing code has a badly defined dynamic type, but, in the later
case, this error would avoid the proper error message to appear.
David.
Hi!
I installed CLAM on a 10.9 OSX. I tried to compile this example
http://clam-project.org/wiki/Constructing_and_playing_a_simple_network
SCons Build [prova] (started 2013-11-24 17:50:25)
/sw/bin/scons -j 1 --implicit-cache --verbosity=1
--buildconfiguration=release --forcemodified test.cc .
scons: Reading SConscript files ...
checking for SconsBuilderDoxygen.py
checking for SconsBuilderDoxygen.py done
Building prova (release)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: test.cc
scons: Nothing to be done for `test.cc'.
scons: building associated VariantDir targets: .build/release
Dependency test.cc is forced modified
Dependency test.cc is forced modified
SharedObject('.build/release/test.os')
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
In file included from
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE(Dummy, 1);
^~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (NullProcessingConfig,
0, ProcessingConfig);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReader.hxx:26:
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:41:3:
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE(
MonoAudioFileReaderConfig, 3, ProcessingConfig );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
/Applications/CLAM_dev/include/CLAM/Audio.hxx:49:3: error: call to
non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (Audio, 3, ProcessingData);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but
you are including files that require this. Please fix your settings.cfg
^
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE( AudioFileHeader, 7 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE( AudioTextDescriptors, 6 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
scons: building terminated because of errors.
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<int>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:456:2: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<int>' requested here
DYN_ATTRIBUTE(0, public, int, AnAttribute);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::AudioInFilename>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:46:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::AudioInFilename>' requested here
DYN_ATTRIBUTE( 0, public, AudioInFilename, SourceFile );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<bool>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:57:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<bool>' requested here
DYN_ATTRIBUTE( 2, public, bool, Loop );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<float>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:52:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<float>' requested here
DYN_ATTRIBUTE (0, public, TData, SampleRate);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<double>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:54:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<double>' requested here
DYN_ATTRIBUTE (1, public, TTime, BeginTime);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::Text>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::Text>' requested here
DYN_ATTRIBUTE( 0, public, Text, Artist );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/Array.hxx:319:24: note: in
instantiation of member function 'CLAM::XMLAdapter<unsigned
int>::XMLContent' requested here
XMLAdapter<unsigned> sizeAdapter(Size(),"size");
^
/Applications/CLAM_dev/include/CLAM/Array.hxx:280:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreBufferOn'
requested here
StoreBufferOn((typename TypeInfo<T>::StorableAsLeaf
*)NULL, mpData, storage);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:56:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreOn' requested
here
DYN_ATTRIBUTE (2, public, DataArray, Buffer);
^
note: expanded from macro 'DYN_ATTRIBUTE'
TYPE obj; \
^
8 warnings and 7 errors generated.
scons: *** [.build/release/test.os] Error 1
SCons Build [prova](finished 2013-11-24 17:50:32)
I would really appreciate an help! Tnx very much!
Alessandra
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
David García Garzón
2014-02-12 19:53:56 UTC
Permalink
This settings.cfg file is something from the past. And this message can
be considered a bug.

Provided that you are using SCons, you need to set with_sndfile flag on
the scons command line.

I recommend you to install such library (libsndfile) and set the flag to
1 unless you have strong reasons not to do so. That library provides the
ability to load and save many common audio file formats: WAV, AIFF, AU...

David.
Hi David,
thank you for your reply!
I'm using Xcode gcc, version 5.0 (clang 500.2.79). You were totally
right, I changed the file, it works. Now, I just had an error about
In file included from
In file included from
USE_SNDFILE was not set to 1 in your settings.cfg file, but you are
including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
I can't find this file under my workdir, just in the source file. Can
you help me with this too, please?
Even if it's not a priority, there is a way to shutdown or solve the
annoying warnings?
Il giorno 25/nov/2013, alle ore 02:15, David Garc?a Garz?n
Your compiler (which one is it?) is right. That method, CheckAttribute,
should be static in order to be called without a 'this'.
Should be fixed on subversion revision 15443.
http://clam-project.org/clam/trunk/CLAM/src/core/base/DynamicTypeMacros.hxx
Full CLAM recompilation required.
In Gcc, this template code is just instantiated when you set up a clam
dynamic type with bad indexes. Maybe your compiler is smarter or maybe
your testing code has a badly defined dynamic type, but, in the later
case, this error would avoid the proper error message to appear.
David.
Hi!
I installed CLAM on a 10.9 OSX. I tried to compile this example
http://clam-project.org/wiki/Constructing_and_playing_a_simple_network
SCons Build [prova] (started 2013-11-24 17:50:25)
/sw/bin/scons -j 1 --implicit-cache --verbosity=1
--buildconfiguration=release --forcemodified test.cc .
scons: Reading SConscript files ...
checking for SconsBuilderDoxygen.py
checking for SconsBuilderDoxygen.py done
Building prova (release)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: test.cc
scons: Nothing to be done for `test.cc'.
scons: building associated VariantDir targets: .build/release
Dependency test.cc is forced modified
Dependency test.cc is forced modified
SharedObject('.build/release/test.os')
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
In file included from
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE(Dummy, 1);
^~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (NullProcessingConfig,
0, ProcessingConfig);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReader.hxx:26:
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:41:3:
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE(
MonoAudioFileReaderConfig, 3, ProcessingConfig );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
/Applications/CLAM_dev/include/CLAM/Audio.hxx:49:3: error: call to
non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (Audio, 3, ProcessingData);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but
you are including files that require this. Please fix your settings.cfg
^
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE( AudioFileHeader, 7 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE( AudioTextDescriptors, 6 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
scons: building terminated because of errors.
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<int>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:456:2: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<int>' requested here
DYN_ATTRIBUTE(0, public, int, AnAttribute);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::AudioInFilename>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:46:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::AudioInFilename>' requested here
DYN_ATTRIBUTE( 0, public, AudioInFilename, SourceFile );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<bool>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:57:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<bool>' requested here
DYN_ATTRIBUTE( 2, public, bool, Loop );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<float>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:52:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<float>' requested here
DYN_ATTRIBUTE (0, public, TData, SampleRate);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<double>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:54:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<double>' requested here
DYN_ATTRIBUTE (1, public, TTime, BeginTime);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::Text>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::Text>' requested here
DYN_ATTRIBUTE( 0, public, Text, Artist );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/Array.hxx:319:24: note: in
instantiation of member function 'CLAM::XMLAdapter<unsigned
int>::XMLContent' requested here
XMLAdapter<unsigned> sizeAdapter(Size(),"size");
^
/Applications/CLAM_dev/include/CLAM/Array.hxx:280:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreBufferOn'
requested here
StoreBufferOn((typename TypeInfo<T>::StorableAsLeaf
*)NULL, mpData, storage);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:56:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreOn' requested
here
DYN_ATTRIBUTE (2, public, DataArray, Buffer);
^
note: expanded from macro 'DYN_ATTRIBUTE'
TYPE obj; \
^
8 warnings and 7 errors generated.
scons: *** [.build/release/test.os] Error 1
SCons Build [prova](finished 2013-11-24 17:50:32)
I would really appreciate an help! Tnx very much!
Alessandra
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
David García Garzón
2014-02-12 19:53:56 UTC
Permalink
This settings.cfg file is something from the past. And this message can
be considered a bug.

Provided that you are using SCons, you need to set with_sndfile flag on
the scons command line.

I recommend you to install such library (libsndfile) and set the flag to
1 unless you have strong reasons not to do so. That library provides the
ability to load and save many common audio file formats: WAV, AIFF, AU...

David.
Hi David,
thank you for your reply!
I'm using Xcode gcc, version 5.0 (clang 500.2.79). You were totally
right, I changed the file, it works. Now, I just had an error about
In file included from
In file included from
USE_SNDFILE was not set to 1 in your settings.cfg file, but you are
including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
I can't find this file under my workdir, just in the source file. Can
you help me with this too, please?
Even if it's not a priority, there is a way to shutdown or solve the
annoying warnings?
Il giorno 25/nov/2013, alle ore 02:15, David Garc?a Garz?n
Your compiler (which one is it?) is right. That method, CheckAttribute,
should be static in order to be called without a 'this'.
Should be fixed on subversion revision 15443.
http://clam-project.org/clam/trunk/CLAM/src/core/base/DynamicTypeMacros.hxx
Full CLAM recompilation required.
In Gcc, this template code is just instantiated when you set up a clam
dynamic type with bad indexes. Maybe your compiler is smarter or maybe
your testing code has a badly defined dynamic type, but, in the later
case, this error would avoid the proper error message to appear.
David.
Hi!
I installed CLAM on a 10.9 OSX. I tried to compile this example
http://clam-project.org/wiki/Constructing_and_playing_a_simple_network
SCons Build [prova] (started 2013-11-24 17:50:25)
/sw/bin/scons -j 1 --implicit-cache --verbosity=1
--buildconfiguration=release --forcemodified test.cc .
scons: Reading SConscript files ...
checking for SconsBuilderDoxygen.py
checking for SconsBuilderDoxygen.py done
Building prova (release)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: test.cc
scons: Nothing to be done for `test.cc'.
scons: building associated VariantDir targets: .build/release
Dependency test.cc is forced modified
Dependency test.cc is forced modified
SharedObject('.build/release/test.os')
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
In file included from
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE(Dummy, 1);
^~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (NullProcessingConfig,
0, ProcessingConfig);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReader.hxx:26:
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:41:3:
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE(
MonoAudioFileReaderConfig, 3, ProcessingConfig );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
/Applications/CLAM_dev/include/CLAM/Audio.hxx:49:3: error: call to
non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (Audio, 3, ProcessingData);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but
you are including files that require this. Please fix your settings.cfg
^
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE( AudioFileHeader, 7 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE( AudioTextDescriptors, 6 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
scons: building terminated because of errors.
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<int>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:456:2: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<int>' requested here
DYN_ATTRIBUTE(0, public, int, AnAttribute);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::AudioInFilename>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:46:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::AudioInFilename>' requested here
DYN_ATTRIBUTE( 0, public, AudioInFilename, SourceFile );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<bool>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:57:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<bool>' requested here
DYN_ATTRIBUTE( 2, public, bool, Loop );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<float>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:52:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<float>' requested here
DYN_ATTRIBUTE (0, public, TData, SampleRate);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<double>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:54:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<double>' requested here
DYN_ATTRIBUTE (1, public, TTime, BeginTime);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::Text>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::Text>' requested here
DYN_ATTRIBUTE( 0, public, Text, Artist );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/Array.hxx:319:24: note: in
instantiation of member function 'CLAM::XMLAdapter<unsigned
int>::XMLContent' requested here
XMLAdapter<unsigned> sizeAdapter(Size(),"size");
^
/Applications/CLAM_dev/include/CLAM/Array.hxx:280:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreBufferOn'
requested here
StoreBufferOn((typename TypeInfo<T>::StorableAsLeaf
*)NULL, mpData, storage);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:56:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreOn' requested
here
DYN_ATTRIBUTE (2, public, DataArray, Buffer);
^
note: expanded from macro 'DYN_ATTRIBUTE'
TYPE obj; \
^
8 warnings and 7 errors generated.
scons: *** [.build/release/test.os] Error 1
SCons Build [prova](finished 2013-11-24 17:50:32)
I would really appreciate an help! Tnx very much!
Alessandra
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
David García Garzón
2014-02-12 19:53:56 UTC
Permalink
This settings.cfg file is something from the past. And this message can
be considered a bug.

Provided that you are using SCons, you need to set with_sndfile flag on
the scons command line.

I recommend you to install such library (libsndfile) and set the flag to
1 unless you have strong reasons not to do so. That library provides the
ability to load and save many common audio file formats: WAV, AIFF, AU...

David.
Hi David,
thank you for your reply!
I'm using Xcode gcc, version 5.0 (clang 500.2.79). You were totally
right, I changed the file, it works. Now, I just had an error about
In file included from
In file included from
USE_SNDFILE was not set to 1 in your settings.cfg file, but you are
including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
I can't find this file under my workdir, just in the source file. Can
you help me with this too, please?
Even if it's not a priority, there is a way to shutdown or solve the
annoying warnings?
Il giorno 25/nov/2013, alle ore 02:15, David Garc?a Garz?n
Your compiler (which one is it?) is right. That method, CheckAttribute,
should be static in order to be called without a 'this'.
Should be fixed on subversion revision 15443.
http://clam-project.org/clam/trunk/CLAM/src/core/base/DynamicTypeMacros.hxx
Full CLAM recompilation required.
In Gcc, this template code is just instantiated when you set up a clam
dynamic type with bad indexes. Maybe your compiler is smarter or maybe
your testing code has a badly defined dynamic type, but, in the later
case, this error would avoid the proper error message to appear.
David.
Hi!
I installed CLAM on a 10.9 OSX. I tried to compile this example
http://clam-project.org/wiki/Constructing_and_playing_a_simple_network
SCons Build [prova] (started 2013-11-24 17:50:25)
/sw/bin/scons -j 1 --implicit-cache --verbosity=1
--buildconfiguration=release --forcemodified test.cc .
scons: Reading SConscript files ...
checking for SconsBuilderDoxygen.py
checking for SconsBuilderDoxygen.py done
Building prova (release)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: test.cc
scons: Nothing to be done for `test.cc'.
scons: building associated VariantDir targets: .build/release
Dependency test.cc is forced modified
Dependency test.cc is forced modified
SharedObject('.build/release/test.os')
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
In file included from
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE(Dummy, 1);
^~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (NullProcessingConfig,
0, ProcessingConfig);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReader.hxx:26:
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:41:3:
error: call to non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE(
MonoAudioFileReaderConfig, 3, ProcessingConfig );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
/Applications/CLAM_dev/include/CLAM/Audio.hxx:49:3: error: call to
non-static member function without an object argument
DYNAMIC_TYPE_USING_INTERFACE (Audio, 3, ProcessingData);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE_USING_INTERFACE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: USE_SNDFILE was not set to 1 in your settings.cfg file, but you
are including files that require this. Please fix your settings.cfg
#error USE_SNDFILE was not set to 1 in your settings.cfg file, but
you are including files that require this. Please fix your settings.cfg
^
In file included from
In file included from
call to non-static member function without an object argument
DYNAMIC_TYPE( AudioFileHeader, 7 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
In file included from
In file included from
error: call to non-static member function without an object argument
DYNAMIC_TYPE( AudioTextDescriptors, 6 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'DYNAMIC_TYPE'
__COMMON_DYNAMIC_TYPE(CLASS_NAME,N); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro '__COMMON_DYNAMIC_TYPE'
CheckAttribute ((InboundsCheck*)NULL, \
^~~~~~~~~~~~~~
scons: building terminated because of errors.
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<int>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:456:2: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<int>' requested here
DYN_ATTRIBUTE(0, public, int, AnAttribute);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::AudioInFilename>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:46:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::AudioInFilename>' requested here
DYN_ATTRIBUTE( 0, public, AudioInFilename, SourceFile );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<bool>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/MonoAudioFileReaderConfig.hxx:57:3:
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<bool>' requested here
DYN_ATTRIBUTE( 2, public, bool, Loop );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<float>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:52:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<float>' requested here
DYN_ATTRIBUTE (0, public, TData, SampleRate);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function 'CLAM::XMLAdapter<double>::XMLContent'
requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:54:3: note: in
instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<double>' requested here
DYN_ATTRIBUTE (1, public, TTime, BeginTime);
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/DynamicType.hxx:372:26: note: in
instantiation of member function
'CLAM::XMLAdapter<CLAM::Text>::XMLContent' requested here
XMLAdapter<AttribType> adapter(object, name, true);
^
note: in instantiation of function template specialization
'CLAM::DynamicType::StoreAttribute<CLAM::Text>' requested here
DYN_ATTRIBUTE( 0, public, Text, Artist );
^
note: expanded from macro 'DYN_ATTRIBUTE'
DynamicType::StoreAttribute( \
^
In file included from
In file included from
In file included from
In file included from
comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
return str!=NULL;
~~~^ ~~~~
/Applications/CLAM_dev/include/CLAM/Array.hxx:319:24: note: in
instantiation of member function 'CLAM::XMLAdapter<unsigned
int>::XMLContent' requested here
XMLAdapter<unsigned> sizeAdapter(Size(),"size");
^
/Applications/CLAM_dev/include/CLAM/Array.hxx:280:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreBufferOn'
requested here
StoreBufferOn((typename TypeInfo<T>::StorableAsLeaf
*)NULL, mpData, storage);
^
/Applications/CLAM_dev/include/CLAM/Audio.hxx:56:3: note: in
instantiation of member function 'CLAM::Array<float>::StoreOn' requested
here
DYN_ATTRIBUTE (2, public, DataArray, Buffer);
^
note: expanded from macro 'DYN_ATTRIBUTE'
TYPE obj; \
^
8 warnings and 7 errors generated.
scons: *** [.build/release/test.os] Error 1
SCons Build [prova](finished 2013-11-24 17:50:32)
I would really appreciate an help! Tnx very much!
Alessandra
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
_______________________________________________
clam-devel mailing list
clam-devel at lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
Loading...