Before I switched to Opensuse 12.3, I was running Arch, and doing something like:
g++ -o test -I ./include/ -L ./lib/ -ltcod -ltcodxx ./src/main.cpp
would work with no issues.
Now, when I try to do that (with everything kept the exact same as when on Arch), I get:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: skipping incompatible lib/libtcod.so when searching for -ltcod
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -ltcod
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: skipping incompatible lib/libtcodxx.so when searching for -ltcodxx
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -ltcodxx
Any help as to why the libraries have become incompatible all of a sudden would be greatly appreciated.
On Wed 15 May 2013 02:56:01 AM CDT, P Peter wrote:
Before I switched to Opensuse 12.3, I was running Arch, and doing
something like:
Code:
g++ -o test -I ./include/ -L ./lib/ -ltcod -ltcodxx ./src/main.cpp
would work with no issues.
Now, when I try to do that (with everything kept the exact same as when
on Arch), I get:
Code:
/usr/lib64/gcc/x86_64-suse-linux/4.7/…/…/…/…/x86_64-suse-linux/bin/ld:
skipping incompatible lib/libtcod.so when searching for
-ltcod /usr/lib64/gcc/x86_64-suse-linux/4.7/…/…/…/…/x86_64-suse-linux/bin/ld:
cannot find
-ltcod /usr/lib64/gcc/x86_64-suse-linux/4.7/…/…/…/…/x86_64-suse-linux/bin/ld:
skipping incompatible lib/libtcodxx.so when searching for
-ltcodxx /usr/lib64/gcc/x86_64-suse-linux/4.7/…/…/…/…/x86_64-suse-linux/bin/ld:
cannot find -ltcodxx --------------------
Any help as to why the libraries have become incompatible all of a
sudden would be greatly appreciated.
Hi
Because your using 64bit, it should be lib64 or /usr/lib64 etc.
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.4-desktop
up 10:03, 3 users, load average: 0.01, 0.02, 0.05
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Arrandale