help-gplusplus
[Top][All Lists]
Advanced

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

Re: g++34 std::locale::id seems to be different under debug mode?


From: Paul Pluzhnikov
Subject: Re: g++34 std::locale::id seems to be different under debug mode?
Date: Sat, 07 Oct 2006 06:04:26 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

"Pep" <pepaltavista@yahoo.co.uk> writes:

> If I compile the help library source tree in non-debug mode then I get
> a error when linking against it regarding a undefined
> std::locale::id::id()

Begin by posting the *exact* error message.

> The complaint about the undefined std::locale::id::id() comes from a
> routine in the helper library source tree

So you know what routine is "causing the problem".

Take the source file in which that routine is defined, compile that
source in debug and non-debug mode, and run:

  nm -C debug.o    | grep 'std::locale::id::id'
  nm -C nondebug.o | grep 'std::locale::id::id'

against the resulting object. You should observe an unresolved ('U')
reference in nondebug.o.

Now remove all routines, except the one "causing problem", and
repeat the experiment again. The result should be the same.

Finally, remove all unnecessary '#include's, and you'll have a
small test case (do tell us what command line you used to compile it).

> This is only happening with g++ 3.4.6

What is the output from 'g++ -v' (this will tell us what platform
you are using and how this g++ was configured).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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