Date: Tue, 23 Dec 2008 17:46:00 +0000 From: "=?ISO-8859-2?Q?Pawe=B3_Wieczorek?=" <wieczyk@gmail.com> To: "Garrett Cooper" <yanefbsd@gmail.com> Cc: amd64@freebsd.org, stable <stable@freebsd.org> Subject: Re: -m32 broken on bi-arch amd64 systems? Message-ID: <1255bf0d0812230946nc90ee38u28b040c3d720868a@mail.gmail.com> In-Reply-To: <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com> References: <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I will extend topic to C++: [19:38] zubr:~/Code (1) $ g++ -m32 -B /usr/lib32 p.cpp In file included from /usr/include/c++/4.2/ext/new_allocator.h:37, from /usr/include/c++/4.2/bits/c++allocator.h:39, from /usr/include/c++/4.2/bits/allocator.h:53, from /usr/include/c++/4.2/memory:54, from /usr/include/c++/4.2/string:48, from /usr/include/c++/4.2/bits/locale_classes.h:47, from /usr/include/c++/4.2/bits/ios_base.h:47, from /usr/include/c++/4.2/ios:48, from /usr/include/c++/4.2/ostream:45, from /usr/include/c++/4.2/iostream:45, from p.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [19:38] zubr:~/Code (1) $ cat p.cpp #include <iostream> int main() { return 0; } [19:39] zubr:~/Code $ Problem with C++ is more connected to headers than binaries, any suggestions how to use G++ to produce 32bit code ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1255bf0d0812230946nc90ee38u28b040c3d720868a>