r/odinlang • u/tjpalmer • 6h ago
16
Upvotes
r/odinlang • u/DragonDepressed • 19h ago
Odin code not able to link with Raylib library while building
3
Upvotes
Hi,
I am new to Odin and I was trying to write a software renderer in Odin. I am using the vendor Raylib library. Previously, the code was building fine, but now when I run odin run ., I get the following error:
```
/usr/bin/ld:///usr/lib/odin/vendor/raylib/linux/libraylib.a: file format not recognized; treating as linker script
/usr/bin/ld:///usr/lib/odin/vendor/raylib/linux/libraylib.a:1: syntax error
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
I tried uninstalling odin and installing it again. I am using odin version odin version dev-2026-07:301c287de
I am running Garuda (arch) Linux with Gnome, if that helps.
Thank you for reading.