compilation problem

This is a discussion on compilation problem within the C Programming forums, part of the General Programming Boards category; Hi all, I am experiencing the following problem. I was compiling my program on an operating system, and it compiled ...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    46

    compilation problem

    Hi all,

    I am experiencing the following problem.

    I was compiling my program on an operating system, and it compiled ok, without errors. I did not check if it was 32 bit or 64 bit architecture. But, it must be 32 bit, because,

    Now my current system is

    x86_64 GNU/Linux

    and when I try to compile the same program on this system, I receive the following error:

    /usr/bin/ld: i386 architecture of input file `../../../..//libs/ftt-master.linux.a(math_tools.linux.o)' is incompatible with i386:x86-64 output''

    Any help in this regard, how can I resolve this problem.


    Thanks,

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,851
    Well if you want the result to be 32-bit, then you'll need to install a 64bit to 32bit cross-compiler on your system.

    Otherwise, make sure all your component libraries are 64-bit (by compiling them yourself perhaps).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    46
    Quote Originally Posted by Salem View Post
    Well if you want the result to be 32-bit, then you'll need to install a 64bit to 32bit cross-compiler on your system.

    Otherwise, make sure all your component libraries are 64-bit (by compiling them yourself perhaps).
    Hi thanks for the reply.

    I am on a 64-bit system, and would like the result to be 32-bit. Could you give me some specific direction in this regard ...

    thanks,

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,851
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    46
    Quote Originally Posted by Salem View Post
    Hey sorry for being so naive ...

    My search was returning the compiling for 64 bit from 32 bit and other such options, ... , and I thought probably you were referring to the same, ..., therefore I tried to be specific by sending the last reply ... but any ways, thanks for your help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. compilation problem
    By cnu_sree in forum C Programming
    Replies: 6
    Last Post: 10-25-2007, 05:23 AM
  2. Compilation problem
    By OSDever in forum C++ Programming
    Replies: 10
    Last Post: 09-08-2005, 07:42 AM
  3. Compilation problem
    By Armatura in forum C++ Programming
    Replies: 5
    Last Post: 11-12-2003, 12:42 AM
  4. Compilation problem
    By Skarr in forum Linux Programming
    Replies: 3
    Last Post: 09-27-2002, 01:37 PM
  5. compilation problem
    By Abdi in forum C Programming
    Replies: 3
    Last Post: 05-28-2002, 11:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21