ld: fatal: option -dn and -c are incompatible
Hello,
Could some one help me out how to resolve the following error in Solaris 9?
ld: fatal: option -dn and -c are incompatible
ld: fatal: Flags processing errors
I am using SUNStudio 9 on a sparc machine.
I was getting "ld: fatal: option -dy and -ac are incompatible" error before adding "-Bstatic" to my liker switch. I am building a static binary the and my linker line in make file read like this...
export COMPILER="/opt/SUNWspro/bin/CC"
export TESTEXEBUILDFLAGSRELEASE="-dn -a -staticlib=Crun -static -v -DUNIX -DSOLARIS -I../TESTFiles"
$COMPILER $TESTEXEBUILDFLAGSRELEASE main.cpp -o test -L. -ltest_sunos -L../TESTFiles -ltestclient_sunos -lpam -lrt -lpthread -ldl>> $OUTPUTFILE 2>&1
Any suggestions would be greatly appreciated...
Thanks,
Reddy

