 |
|
| Linux Forum Index » Linux Development - Applications » Compiling 32 bit on a 64 bit system... |
|
Page 1 of 1 |
|
| Author |
Message |
| Rikishi42... |
Posted: Wed Oct 07, 2009 3:17 pm |
|
|
|
Guest
|
Hi,
a small local team of our engineers developts their own applications.
They need to compile applications in 32 bit,using their own 32 bit libs, on
this new system they have... which is 64 bit.
Is there any help available on using a 64 bit gcc to compile in 32 bit?
--
Any time things appear to be going better, you have overlooked
something. |
|
|
| Back to top |
|
|
|
| Måns Rullgård... |
Posted: Wed Oct 07, 2009 3:44 pm |
|
|
|
Guest
|
Rikishi42 <skunkworks at (no spam) rikishi42.net> writes:
Quote: Hi,
a small local team of our engineers developts their own applications.
They need to compile applications in 32 bit,using their own 32 bit libs, on
this new system they have... which is 64 bit.
Is there any help available on using a 64 bit gcc to compile in 32 bit?
As the manual will tell you, this is achieved with the -m32 flag.
--
Måns Rullgård
mans at (no spam) mansr.com |
|
|
| Back to top |
|
|
|
| Rikishi42... |
Posted: Wed Oct 07, 2009 4:05 pm |
|
|
|
Guest
|
On 2009-10-07, Måns Rullgård <mans at (no spam) mansr.com> wrote:
Quote:
Rikishi42 <skunkworks at (no spam) rikishi42.net> writes:
Hi,
a small local team of our engineers developts their own applications.
They need to compile applications in 32 bit,using their own 32 bit libs, on
this new system they have... which is 64 bit.
Is there any help available on using a 64 bit gcc to compile in 32 bit?
As the manual will tell you, this is achieved with the -m32 flag.
I did suspect there was such a switch. But what I was wondering about, was
wether there was a need to install 32 versions of the compilers files. More
in the order of libraries, header files, etc...
--
Any time things appear to be going better, you have overlooked
something. |
|
|
| Back to top |
|
|
|
| David Schwartz... |
Posted: Thu Oct 08, 2009 12:13 pm |
|
|
|
Guest
|
On Oct 7, 3:05 pm, Rikishi42 <skunkwo... at (no spam) rikishi42.net> wrote:
Quote: I did suspect there was such a switch. But what I was wondering about, was
wether there was a need to install 32 versions of the compilers files. More
in the order of libraries, header files, etc...
Yes, your distribution may or may not require special configuration to
do this. As I recall, Fedora requires nothing special unless you want
to develop 32-bit executables that are statically linked. Then you do
need to install the 32-bit versions of the packages that include the
static libraries.
DS |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Sun Nov 29, 2009 4:01 pm
|
|