Hello,
I would like to use some C++ containers in my tool.  I have attempted to modify 
my tool's Makefile.am by adding AM_CXXFLAGS = -std=gnu++11 at the top and 
changing $(LINK) to $(CXXLINK).  However, because of the -nodefaultlibs switch 
I have to manually add libraries to be linked.  I receive a multiple definition 
error:

/usr/lib/gcc/x86_64-redhat-linux/5.1.1/../../../../lib64/libc.a(abort.o): In 
function `abort':
(.text+0x0): multiple definition of `abort'
../coregrind/libcoregrind-amd64-linux.a(libcoregrind_amd64_linux_a-m_main.o):/home/will/Downloads/vg1/coregrind/m_main.c:2861:
 first defined here

There is a conflict because of valgrind's redefinition of standard library 
functions.  Is it possible or are the examples of using C++ in a valgrind tool.

Thanks, William
------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to