From: swettk@my-deja.com
Subject: Linking Statically & Dynamically with GCC
Date: 2000/01/10 [thread overview]
Message-ID: <85d6ah$esg$1@nnrp1.deja.com> (raw)
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.
next reply other threads:[~2000-01-10 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-10 5:00 swettk [this message]
2000-01-13 5:00 ` Linking Statically & Dynamically with GCC Joe Mario
2000-01-15 5:00 ` Tim Mooney
2000-01-19 5:00 ` swettk
2000-02-17 5:00 ` swettk
2000-02-17 5:00 ` swettk
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox