FreeBSD linking problem

s4mmael s4mmael at gmail.com
Thu Aug 11 06:48:54 PDT 2011


Hi folks,

During linking a very simple "hello world" program with "dmd2 -run hello.d" I
got the following errors:

/usr/bin/ld: unrecognized option '--no-warn-search-mismatch'
/usr/bin/ld: use the --help option for usage information

I was trying this on two different machines, one of them is clear just
installed FreeBSD. Results is the same.

OS: FreeBSD 8.2 Release
DMD: both 2.053 and 2.054
LD: GNU ld version 2.15 [FreeBSD] 2004-05-23

How do I overcome this error? It's quite clear dmd2 is trying to link an
object file with an incorrect for this ld version options, but how to fix that?

Google did not help.
Thank you in advance for any help. It's greatly appreciated.


More information about the Digitalmars-d-learn mailing list