/usr/bin/ld: unrecognized option

Artūras Moskvinas arturas.moskvinas@gmail.com
Sun Nov 23 02:34:00 GMT 2008


> Hi,
>
> I am running gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
> and I've following error:
>
> /usr/bin/ld: unrecognized option '--hash-style=sysv'
>
> Appreciate any helps to fix the problem.
>
>   
Hello,

What version of binutils do you use?

Command to check your ld version:
/usr/bin/ld --version

--hash-style was introduced in binutils 2.17, so you might have to 
upgrade your binutils package or remove that option (--hash-style)


Arturas Moskvinas



More information about the Gcc-help mailing list