The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
subsystem failure andwhat UNIX for Advanced & Expert Users 2 03-12-2008 09:28 AM
Bind failure zing_foru UNIX for Advanced & Expert Users 5 01-19-2008 06:20 AM
Raid5 Failure gseyforth SCO 2 02-21-2006 01:22 PM
GCC bootstrap failure on AIX 5.3 Duggerdee AIX 2 10-18-2005 06:38 PM
CPU failure??? 98_1LE UNIX for Dummies Questions & Answers 1 01-23-2001 05:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-29-2004
handak9 handak9 is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 31
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.
  #2 (permalink)  
Old 09-29-2004
handak9 handak9 is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 31
jsh1035c:/users/egate453/admegate/kapil/samples $ file ../JMS/C_API/stc_msapi.dll
../JMS/C_API/stc_msapi.dll: data

Does that look right?
  #3 (permalink)  
Old 09-29-2004
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
Quote:
Originally posted by handak9
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0