It seems you are not linking with libraylib.a, was the library successfully compiled and libraylib.a generated in raylib/src directory?
Yes, librarylib.a is generated in raylib/src directory
It's a bit difficult to know your specific issue, try asking in raylib Discord forum, there is a lot of friendly people that could help tracking the issue.
Thank you !
When i try it with raylib 2.5.0, it works fine