|
From: ooOoo <jg3...@ya...> - 2004-04-01 20:34:18
|
Is it possible to build statically-linked, stand-alone
executable files with plplot?
When I link with the -static option, I get many
"undefined references" (see output below). This
result was with the 5.2.1 version of plplot, running
under RedHat 9, with f77.
Thinking that I may not have built the plplot
libraries to enable static linking, I began to install
the 5.3.0 version. After getting through make, I saw
nothing listed after "Available device drivers/static"
(see output below).
Am I doing something incorrect, or is it simply not
possible to make stand-alone executables?
---- errors generated when trying to build a static
executable ----------
plplot-5.2.1
This is the link command I used:
f77 -static -o itcsim2 itcsim2.o hybrd1.o deriv1.o
gaussj.o sort2.o lspoly.o itc2.o timedate.o -L
/usr/local/lib -lplplotf77 -I/usr/local/include/plplot
-L/usr/X11R6/lib -lX11 -lieee -lm
... which gave these errors:
/usr/local/lib/libplplotf77.a(scstubs.o)(.text+0xd):
In function `pladv_':
/tmp/plplot-5.2.1/bindings/f77/scstubs.c:15: undefined
reference to `c_pladv'
/usr/local/lib/libplplotf77.a(scstubs.o)(.text+0x49):
In function `plaxes7_':
/tmp/plplot-5.2.1/bindings/f77/scstubs.c:22: undefined
reference to `c_plaxes'
... followed by many more lines like the ones above
------- output after make (no static device drivers?)
-------------------------
(After editing the configure file to change the
following from the defaults,
with_csa=no and with_double=no
I ran ./configure, and make. Part of the output
looked like this...)
(plplot-5.3.0)
devices: dg300 png jpeg hp7470 hp7580 lj_hpgl
imp ljii ljiip mem ntk nul
l pbm plmeta ps psc pstex xterm tek4010 tek4107
mskermit versaterm vlt conex tek
4010f tek4107f tk xfig xwin
Available device drivers:
static:
dynamic: dg300.la gd.la hpgl.la impress.la
ljii.la ljiip.la mem.la ntk.l
a null.la pbm.la plmeta.la ps.la pstex.la tek.la tk.la
xfig.la xwin.la
Compilation options:
with_debug: no with_opt: yes
with_warn: no with_profile: no
Library options:
enable_shared: yes enable_static: yes
with_rpath: yes with_double: no
Optional libraries:
with_qhull: no with_csa: no
with_freetype: yes with_pthreads: no
Language Bindings:
enable_tcl: yes enable_itcl: no
enable_cxx: yes enable_f77: yes
enable_java: no enable_python: no
enable_octave: no
--------------------------------------------------------
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
|