ld failure

Hi,

I am using gmake to compile a c program with a makefile. The make file runs ld. I get the following error

jsh1035c:/users/egate453/admegate/kapil/samples $ gmake -e -f GNUmakefile queue_c
gmake -f ./GNUmakefile queue_c in_objdir=1 build_root=/users/egate453/admegate/kapil/samples
gmake[1]: Entering directory `/export/home/users/egate453/admegate/kapil/samples'
g++ -g -Wall -L. -o queue_c queue_c.o -lsocket -lnsl -lintl -lposix4 -lpthread -ldl stc_mscapi.dll stc_mscommon.dll stc_msapi.dll stc_msclient.dll
ld: fatal: file stc_mscapi.dll: unknown file type
ld: fatal: File processing errors. No output written to queue_c
collect2: ld returned 1 exit status
gmake[1]: *** [queue_c] Error 1
gmake[1]: Leaving directory `/export/home/users/egate453/admegate/kapil/samples'
gmake: *** [queue_c] Error 2

Do dll files work with ld and unix?

I got all this from a 3rd party vendor so I am having to do a bit of hacking to sort this out.

Any help is appreciated.

jsh1035c:/users/egate453/admegate/kapil/samples $ file ../JMS/C_API/stc_msapi.dll
../JMS/C_API/stc_msapi.dll: data

Does that look right?

No. Unix uses "magic numbers" to determine file types.
Unix cannot deal with Windows files

.dll files are Windows files. Windows COFF files do not work in Unix.