C++ Compile file source ERROR

Hi, everyone when I try to compile source files I find myself with this error at the end of compilation, can anyone tell me why? I'm using FreeBSD 13.2

Code:
linking ../game....
ld: error: /usr/local/lib/libIL.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libpng.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libtiff.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libmng.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/liblcms.so is incompatible with elf_i386_fbsd
ld: error: /usr/local/lib/libjpeg.so is incompatible with elf_i386_fbsd
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:127: ../game] Error 1
1234.png
 
What you see is not a compilation error. ‘ld’ is the link editor or linker. Your problem is that you are mixing i386 compilation with amd64 linking. Either you need to compile for amd64 (no -m32 flag) or link with i386 libraries (change -L paths so that they refer to i386 shared library directories).
 
Back
Top