- #1
PPeter
- 3
- 1
Before I switched to Opensuse 12.3, I was running Arch, and doing something like:
with no problems occurring.
Now, when I try to do that (with everything kept the exact same as when on Arch), I get:
I also tried including -Wl,-rpath=./lib/ , but it still made no difference.
Any help as to why the libraries have become incompatible all of a sudden would be greatly appreciated.
Code:
g++ -o test -I ./include/ -L ./lib/ -ltcod -ltcodxx ./src/main.cpp
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
I also tried including -Wl,-rpath=./lib/ , but it still made no difference.
Any help as to why the libraries have become incompatible all of a sudden would be greatly appreciated.