Note that there are some explanatory texts on larger screens.

plurals
  1. POTeacher supplied library for x86_64 incompatible with my system
    text
    copied!<p>I have been given an assignment in school, and my lecture has stated that we need to use his pre compiled C library which contains an important function definition.</p> <p>I have tried removing all current *.o files from the dir, there isn't any there currently.</p> <p>The problem i have currently is as follows:</p> <pre><code> i386:x86-64 architecture of input file `libnavigation.a(great_circle.o)' is incompatible with i386 output </code></pre> <p>where libnavigation.a is the library name which contains the great_circle function.</p> <p>uname -ma</p> <pre><code>Linux chris-SATELLITE-PRO-C850 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux </code></pre> <p>I have tried adding the several command options to gcc</p> <ol> <li>-m32 results in the same error error:</li> <li><p>-m64 results in the error:</p> <pre><code> gcc -o dist/Debug/GNU-Linux-x86/c_assignment build/Debug/GNU-Linux- x86/line_counter.o build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux- x86/mayday.o build/Debug/GNU-Linux-x86/rescue_assets.o build/Debug/GNU-Linux-x86/ship.o build/Debug/GNU- Linux-x86/system_handler.o libnavigation.a -lm -m64 /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lm /usr/bin/ld: skipping incompatible /usr/lib/gcc/i686-linux-gnu/4.7/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/i686-linux-gnu/4.7/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find -lc /usr/bin/ld: skipping incompatible /usr/lib/gcc/i686-linux-gnu/4.7/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/i686-linux-gnu/4.7/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find crtn.o: No such file or directory </code></pre></li> </ol> <p>i am not sure how to progress from here, i've asked the teacher but no response as of yet.</p> <p>Thanks, Chris.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload