Home My Page Projects MPTK: The Matching Pursuit ToolKit
Summary Activity Forums Tracker Lists Docs News SCM Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
Bug in the compilation of MPTK 0.5.6 with the Debug flag [ Reply ]
By: Fabien Millioz on 2010-03-24 11:34
[forum:104231]
Hi,

When setting the BUILD_DEBUG flag to 1 with ccmake, the sources does not compile anymore sue to the function "mp_debug_msg":

/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mptk_env.cpp: In member function ‘bool MPTK_Env_c::load_environment(const char*)’:
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mptk_env.cpp:247: error: invalid conversion from ‘const char*’ to ‘long unsigned int’
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mptk_env.cpp:247: error: initializing argument 1 of ‘size_t mp_debug_msg(long unsigned int, const char*, const char*, ...)’

corresponding to:
mp_debug_msg(func,"Setting %s=%s\n",nameBufferCstr,pathBufferCstr);


/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/plugin/base/anywave_atom_plugin.cpp: In member function ‘virtual MP_Real_t MP_Anywave_Atom_Plugin_c::get_field(int, MP_Chan_t)’:
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/plugin/base/anywave_atom_plugin.cpp:493: error: no matching function for call to ‘mp_debug_msg(char*&, const char [10])’
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:433: note: candidates are: size_t mp_debug_msg(long unsigned int, const char*, const char*, ...)
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:453: note: size_t mp_debug_msg(FILE*, long unsigned int, const char*, const char*, ...)


/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/plugin/base/anywave_atom_plugin.cpp:507: error: no matching function for call to ‘mp_debug_msg(char*&, const char [9])’
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:433: note: candidates are: size_t mp_debug_msg(long unsigned int, const char*, const char*, ...)
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:453: note: size_t mp_debug_msg(FILE*, long unsigned int, const char*, const char*, ...)

corresponding respectively to:

mp_debug_msg(func,"Entering\n");
mp_debug_msg(func,"Leaving\n");

/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/plugin/base/anywave_hilbert_atom_plugin.cpp: In member function ‘virtual MP_Real_t MP_Anywave_Hilbert_Atom_Plugin_c::get_field(int, int)’:
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/plugin/base/anywave_hilbert_atom_plugin.cpp:561: error: no matching function for call to ‘mp_debug_msg(char*&, const char [10])’
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:433: note: candidates are: size_t mp_debug_msg(long unsigned int, const char*, const char*, ...)
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:453: note: size_t mp_debug_msg(FILE*, long unsigned int, const char*, const char*, ...)

/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/plugin/base/anywave_hilbert_atom_plugin.cpp:582: error: no matching function for call to ‘mp_debug_msg(char*&, const char [10])’
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:433: note: candidates are: size_t mp_debug_msg(long unsigned int, const char*, const char*, ...)
/home/fmillioz/MPTK/MPTK-Source-0.5.6/src/libmptk/mp_messaging.h:453: note: size_t mp_debug_msg(FILE*, long unsigned int, const char*, const char*, ...)

corresponding respectively to:

mp_debug_msg(func,"Entering\n");
mp_debug_msg(func,"Entering\n");


Commenting theses lines enables the compilation.

Fabien