Boost C++ Libraries: Ticket #10741: Invalid conversion in alloc_lib.c https://svn.boost.org/trac10/ticket/10741 <p> I get the following compile error when building on CentOS 5.10 </p> <pre class="wiki">gcc.compile.c bin.v2/libs/container/build/gcc-4.1.2/release/link-static/threading-multi/alloc_lib.o /usr/include/bits/string2.h: In function ‘char* __strpbrk_c2(const char*, int, int)’: /usr/include/bits/string2.h:1129: error: invalid conversion from ‘void*’ to ‘char*’ /usr/include/bits/string2.h: In function ‘char* __strpbrk_c3(const char*, int, int, int)’: /usr/include/bits/string2.h:1142: error: invalid conversion from ‘void*’ to ‘char*’ /usr/include/bits/string2.h: In function ‘char* __strtok_r_1c(char*, char, char**)’: /usr/include/bits/string2.h:1182: error: invalid conversion from ‘void*’ to ‘char*’ /usr/include/bits/string2.h: In function ‘char* __strsep_2c(char**, char, char)’: /usr/include/bits/string2.h:1245: error: invalid conversion from ‘void*’ to ‘char*’ /usr/include/bits/string2.h: In function ‘char* __strsep_3c(char**, char, char, char)’: /usr/include/bits/string2.h:1273: error: invalid conversion from ‘void*’ to ‘char*’ "g++" -x c -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/container/build/gcc-4.1.2/release/link-static/threading-multi/alloc_lib.o" "libs/container/src/alloc_lib.c" </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10741 Trac 1.4.3 Ion Gaztañaga Sat, 17 Jan 2015 18:30:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10741#comment:1 https://svn.boost.org/trac10/ticket/10741#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Those errors come from system headers, and it seems that you are compiling the c source code as C++ (using g++). </p> Ticket