This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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@google.com> wrote:
> Ishita Kapadiya <ishimegh@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]