When compiling my mix of C and C++ projects, I get this error strongly (this is when compiling a C ++ file):
/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h: In function 'int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)': /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h:70:3: sorry, unimplemented: function 'int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)' can never be inlined because it uses variable argument lists
And the compilation is completed.
But when I manually edited the file /usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++locale.h and remove the inline modifier before __convert_from_v it WORKS .
The problem causing the source code problems is related to inline initially:
inline int __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), char* __out, const int __size __attribute__ ((__unused__)), const char* __fmt, ...)
I think a function like this MUST NOT be marked as inline . Is this a mistake or am I doing something wrong ??? [gcc 4.6.1, Ubuntu 11.10]
source share