Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
ld skipping IrrKlang as incompatible

mindcalamity
Registered User
Quote
2013-07-23 15:12:57

Hello, I'm getting the following error when trying to link with the latest IrrKlang:

/usr/bin/ld: skipping incompatible /home/mindcalamity/Engine/Dependencies/lib/IrrKlang/GCC-Linux/libIrrKlang.so when searching for -lIrrKlang


I'm using g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 on Mint 15 - Olivia.

And when running make in the examples I get the following:

/irrKlang-1.4.0/examples/01.HelloWorld $ make
g++ main.cpp -o example -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread
../../bin/linux-gcc/libIrrKlang.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make: *** [all] Error 1



niko
Moderator
Quote
2013-07-24 07:02:15

Add the parameter
-m32

to g++, like this
g++ main.cpp -o example -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread -m32

then it should work. irrKlang is a 32 bit lib, this will force to compile in 32 bit.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact