Jarno Rajahalme wrote: > main.cc:9: warning: call to 'strndup' declared with attribute warning: The > symbol ::strndup refers to the system function. Use gnulib::strndup instead. > main.cc:12: warning: call to 'close' declared with attribute warning: The > symbol ::close refers to the system function. Use gnulib::close instead.
I don't understand the origin of these warnings. _GL_CXXALIAS_SYS is defined in a way as to avoid these warnings. Can you show the relevant preprocessed output? $ g++-mp-4.4 -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 main.cc -E | grep strndup $ g++-mp-4.4 -DHAVE_CONFIG_H -I. -I.. -I../lib -g -O2 main.cc -E | grep close Bruno