Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Sep 2005 00:47:46 +0300 (EEST)
From:      Vladimir Kushnir <vkushnir@i.kiev.ua>
To:        freebsd-amd64@freebsd.org
Subject:   Compilation of 32bit's in C++: what I'm doing wrong?
Message-ID:  <20050923003950.E28945@kushnir1.kiev.ua>

next in thread | raw e-mail | index | archive | help
Hi,
How do I compile in 32-bit mode with C++ code? Usual
c++ -m32 ...
dies on me with:

In file included from /usr/include/c++/3.4/bits/stl_algobase.h:69,
                  from /usr/include/c++/3.4/bits/char_traits.h:46,
                  from /usr/include/c++/3.4/string:47,
                  from /usr/src/contrib/libstdc++/src/string-inst.cc:38:
/usr/include/c++/3.4/new:82: error: `operator new' takes type `size_t' 
(`unsigned int') as first parameter
.... (several more erorrs of the same kind)

(yes, even for a files that got compiled in the buildworld with no 
problem at all)

This is under fairly recent -CURRENT, and I remember a while ago there was 
no such a problem.

TIA,
Vladimir



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050923003950.E28945>