[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

433.0. "Ultrix Link Command String?" by LDP::WEAVER (Laboratory Data Products/Science) Fri Mar 17 1989 13:23

    Can someone post the link ("lk") command string required to link
    a DECwindows application on Ultrix?  A pointer to the appropriate
    doc reference would also be nice, I couldn't find one.
    
    						Thanks,
    						-Dave

T.RTitleUserPersonal
Name
DateLines
433.1lk? Don't you mean ld?STAR::BRANDENBERGIntelligence - just a good party trick?Fri Mar 17 1989 13:382
    

433.2LDP::WEAVERLaboratory Data Products/ScienceFri Mar 17 1989 13:434
    Yes, I just need to know the string to type.
    
    						-Dave

433.3MIPSBX::thomasThe Code WarriorFri Mar 17 1989 13:546
Usually some variant of

cc -o target obj1.o obj2.o obj3.o -lddif -ldwt

where -lxxx is for the library of routines you need to link with.

433.4lk -o modules -ldwt -lX11 -lc -lm /lib/crt0.oLDP::WEAVERLaboratory Data Products/ScienceFri Mar 17 1989 17:176
    It turns out it was "lk" that I needed.  I also needed "-ldwt -lX11
    -lc -lm" and apparently in that order.  Only problem now is I am
    getting a multiply defined symbol "_calloc" for some reason.
    
    						-Dave

433.5then use "vcc ... -ldwt -lX11 -lm"MIPSBX::thomasThe Code WarriorFri Mar 17 1989 20:121
433.6PSW::WINALSKIPaul S. WinalskiSun Mar 19 1989 16:0515
RE: .4

Rule #1 of linking on Ultrix:  never use ld or lk directly--always use cc, vcc,
f77, or fort (depending on whether your application is pure C or contains
FORTRAN modules).

Instead of saying:  lk -o modules -ldwt -lX11 -lc -lm /lib/crt0.o

try:	vcc -o modules -ldwt -lx11

Among other things wrong with your lk command line, /lib/crt0.o must always come
first.

--PSW

433.7LDP::WEAVERLaboratory Data Products/ScienceTue Mar 21 1989 16:3310
    Re: .6
    
    Thanks, I have settled on using:
    "vcc -o myprog module1.o module2.o moduleN.o -ldwt -lX11 -lm"
    
    (note the "X" is capitalized).
    
    						Thanks,
    						-Dave

433.8PSW::WINALSKIPaul S. WinalskiWed Mar 22 1989 21:404
Damn these case-sensitive operating systems...  :-)

--PSW