Re: problem compiling 32 bit application on 64 bit Linux server

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

 



Hi Ian,

Thanks for your input. Could you please suggest me what to do next? I
really want to compile it with 32 bit.
I tried searching on web but it didn't help me to resolve my problem

On Fri, Mar 11, 2011 at 11:11 AM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Ishita Kapadiya <ishimegh@xxxxxxxxx> writes:
>
>> I am using 'make' to compile this plug-in. I have used the Makefile
>> that generated at the time of installation of web server. So I think
>> it should work with little change (e.g. adding '-m32' to make it 32
>> bit). I have used the same Makefile previously and it worked fine for
>> me with -m32 option. Not sure why it's throwing error. After adding
>> --verbose in LD Flags it seems like gcc is using
>> --host=x86_64-redhat-linux option.
>> I think solution would be as per this link -
>> http://gcc.gnu.org/ml/gcc-help/2011-02/msg00182.html
>>
>> But not sure how to force gcc to use 32 bit libraries?
>
> gcc will use the 32 bit libraries if you link with -m32.
>
> The error you showed earlier was a case of gcc using the 32-bit
> libraries, but your code not being compiled with -m32.
>
> Ian
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux