|
From: Konstantin S. <kon...@gm...> - 2010-06-30 14:13:30
|
2010/6/30 Сергей Аноховский <ano...@ma...>: > Hello. > I am a student of Institute for System Programming in Russia. I have a some problems with valgrind. > > I need in the standard C libraries for my tool. In general, you are out of luck -- valgrind tools are not linked against libc. There is some subset of libc-like functions, you can find them in include/pub_tool_*.h E.g. if you need memcpy, you may call the function VG_(memcpy). --kcc > For example: I need in the function "min()" from the standard C library "math.h". I use "#include <math.h>" in sourse code of my tool. But when I run make, I receive the error "undefined reference to 'min'". I don't know how to do enable use, in my tool, functions from the standard C libraries. I need not only in "math.h", but also in many other libraries. Please, help me in my problem. > > Serg Anohovsky. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > |