From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,670da90686135444,start X-Google-Attributes: gidfee84,public From: swettk@my-deja.com Subject: Linking Statically & Dynamically with GCC Date: 2000/01/10 Message-ID: <85d6ah$esg$1@nnrp1.deja.com>#1/1 X-Deja-AN: 570766918 X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 128.117.23.24 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Jan 10 17:53:28 2000 GMT X-MyDeja-Info: XMYDJUIDswettk Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/4.61 [en] (X11; I; SunOS 5.6 sun4u) I'm installing software on osf1 v4.0 that requires some libraries to be linked statically and others dynamically. On other platforms (SunOS, LINUX, and IRIX), I have successfully used the -Wl,-Bstatic and -Wl,Bdynamic flags, but these flags are unrecognized on this platform. I need to know what flags to use on osf1 to achieve the same effect, or if I have made some error in linking, if someone would be so kind as to give me a clue. :) Following is the output at the linking stage (note that I had to install gcc locally, so libstdc++ is not in the traditional place; rather it is in /usr/var/tmp/dec/lib): g++ dataset.o dbgmodel.o defaults.o field.o fieldlistbox.o fifomodel.o globaldlg.o globaldlg.moc.o globaldlgLayout.o globaldlgLayout.moc.o history.o iopdlg.o iopdlg.moc.o iopdlgLayout.o iopdlgLayout.moc.o loaddlg.o loaddlg.moc.o loaddlgLayout.o loaddlgLayout.moc.o main.o mainwnd.o mainwnd.moc.o mainwndLayout.o mainwndLayout.moc.o manager.o map.o model.o msgdlg.o ncarg.o ncarg_stubs.o ncfile.o optiondlg.o optiondlg.moc.o plist.o plist.moc.o plistLayout.o plistLayout.moc.o plot.o plot.moc.o plotLayout.o plotLayout.moc.o plotwnd.o plotwnd.moc.o postdlg.o postdlg.moc.o postdlgLayout.o postdlgLayout.moc.o rpcmodel.o scaledlg.o scaledlg.moc.o scaledlgLayout.o scaledlgLayout.moc.o sicfile.o timeconvert.o utils.o \ -o ../sccmgui -Wl,-Bstatic -L/usr/var/tmp/dec/lib -lstdc++ -L/usr/local/lib -L/usr/var/tmp/dec/qt/lib -lqt -lnetcdf -L/usr/local/lib -lncarg -lncarg_gks -lncarg_c -Wl,-Bdynamic -lfor -lots -L/usr/X11R6/lib -lX11 -lm /usr/bin/ld: Can't locate file for: -lstdc++ with -Bstatic collect2: ld returned 1 exit status make: *** [../sccmgui] Error 1 Thanks in advance, Karin Sent via Deja.com http://www.deja.com/ Before you buy.