bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

suddenly getting problems with __func__


From: Ichthyostega
Subject: suddenly getting problems with __func__
Date: Sat, 15 May 2010 01:37:45 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi all,

did anyone also come above this problem?
When trying to compile our codebase with gcc 4.4.x (from Ubuntu Lucid), the
__func__ symbol suddenly causes problems. Up to now we used gcc 4.3.x from 
Debian.

I am aware that __func__ is C99 only, thus actually it isn't supposed to work!


But the new behaviour seems strange anyway.

The compilation doesn't fail, but the link step complains e.g.

./.libs/liblumieraproc.so: undefined reference to
`lib::AllocationCluster::handler(unsigned int)::__func__'


I wasn't able to reproduce it with a simple example, i.e. with one simple cpp
file linking against a simple .so, we can still use __func__ in C++ code without
error.

Anyone already noticed that behaviour change? Is there maybe some non-standard
switch to enable __func__ ? (Our codebase isn't C++0x ready yet).

thanx for any ideas or comments
Cheers,
Hermann Vosseler





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvt3sgACgkQZbZrB6HelLI0VACg7LGl858CWGmZ38BvuXa9OjYc
xqUAn3F4CNakpqdfSZBmI1rqf8G9+5SR
=r9ne
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]