Hi Matthias,
The error is from GCC which I built on my own (as mentioned in my
first post), not installed from a package manager. It all works ok
with the system compiler though (Debian 6.0 has gcc 4.4.5).
Thanks & Regards,
Satish
On 22 September 2012 14:50, Matthias Klose wrote:
> On 21.09.201
On 21.09.2012 23:08, bd satish wrote:
> g++ -fmudflap references.cc -lmudflap
you have to install mudflap to use it (it is suggested by the gcc-4.7 package).
sudo apt-get install libmudflap0-4.7-dev
Hi,
Thanks to Zeman, here is the output of (gcc -v -fmudflap file.cc -lmudflap):
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/user/foss/installed/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/
On 09/22/2012 07:11 AM, bd satish wrote:
> Hi,
>
> Here is the output of (gcc -v):
> Using built-in specs.
> COLLECT_GCC=g++
> COLLECT_LTO_WRAPPER=/home/user/installed/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configured with: ../configure --pre
Hi,
Here is the output of (gcc -v):
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/user/installed/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/user/installed/gcc
--enable-languages=c,c++ --
bd satish writes:
> [...]
> The following piece of code, gives "undefined references" to
> __real_malloc, __real_free, etc.:
> Compiled with:
> g++ -fmudflap references.cc -lmudflap
>
> /lib64/libmudflap.a(mf-runtime.o): In function `__mfu_check':
> ../libmudflap/mf-runtime.c:912: undefined refer
Hi,
The following piece of code, gives "undefined references" to
__real_malloc, __real_free, etc.:
// references.cc
#include
void func(int& x) {
x = 0;
}
int main() {
int* p = NULL;
func(*p);
}
Compiled with:
g++ -fmudflap references.cc -lmudflap
/lib64/libmudflap.a(mf-runtime.o): In