Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

suddenly getting problems with __func__

9 views
Skip to first unread message

Ichthyostega

unread,
May 14, 2010, 7:37:45 PM5/14/10
to bug-gp...@gnu.org
-----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-----


0 new messages