From: Joe K. <jko...@co...> - 2005-09-21 02:52:52
|
on 9/20/05 6:37 PM, Alan W. Irwin at ir...@be... wrote: > On 2005-09-20 16:29-0600 Joe Koski wrote: > >> As a new user of plplot, I want to try a simple command line compile of one >> of the examples. Examination of Chapter 21 of the manual says that this >> section needs work. I'm using a Mac with OS X 10.3.9, but, being a bash >> shell, this should be similar to Linux. What I tried, among other things, >> was >> >> Joe-Koskis-Computer:~/Fortran_Compiles/plplot examples/f77 jakoski$ g77 -O2 >> -L/usr/local/lib/ -o x16f x16f.f -lplplotf77d >> /usr/bin/ld: Undefined symbols: >> _pladv_ >> _plcol0_ >> _plend_ >> _plinit_ >> _plline_ >> _plpsty_ >> _plscmap0n_ >> _plvpor_ >> _plwind_ >> collect2: ld returned 1 exit status >> >> Does anyone have a simple command line way to compile with plplot libraries >> and g77? The 1000 line makefile examples don't give me too many clues. >> >> Thanks. Is there a document somewhere that I should read? > > Look at the installed examples (the ones that are created in > $prefix/share/plplot5.5.3/examples/f77 when your run "make install"). There > is a short Makefile in that installed directory that has everything you need > to know. > > Alan Alan, I couldn't find a "short" makefile in the f77 example directory. Are these the typical makefile lines (out of 951) to which you refer? x06f$(EXEEXT): $(x06f_OBJECTS) $(x06f_DEPENDENCIES) @rm -f x06f$(EXEEXT) $(F77LINK) $(x06f_LDFLAGS) $(x06f_OBJECTS) $(x06f_LDADD) $(LIBS) There must be a simpler example somewhere. The example makefile is so obfuscated by substitutions that decoding is all but impossible. My example (in my original post) was a feeble attempt at understanding after studying the very same makefile that I think you suggested. Sorry, I've been using Fortran for over 40 years, but have used the make utility (off and on) for only for the last 10 years or so. Could someone please suggest a simple command line compilation of something like x06f.f? Would defining some environment variables help? Sorry to be such a dunce. Joe |