[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #PQB-907490]: Gempak libraries



David,

The link errors are due to undefined references from the Fortran
compiler. If you are using GEMPAK libraries build with g77,
then you have to tell your pg compiler to add the
appropriate libU77 libI77 system routines using the 
-g77libs flag.

See:
http://www.unidata.ucar.edu/support/help/MailArchives/gempak/msg04631.html


Steve Chiswell
Unidata User Support


> Hello,
> 
> I am trying to compile code that uses gempak libraries (gemlib.a and 
> cgemlib.a). I using GEMPAK 8.3. The compiling command I was given is:
> pgf90 -o main.exe main.f $GEMLIB/gemlib.a $GEMLIB/cgemlib.a
> 
> The errors I get are appended below - but as you see lots of "undefined 
> reference to".  None of these functions appear in the code (main.f), which is 
> also attached.
> 
> So my basic question is, what do these "undefined reference" statements mean, 
> and do I need new (or perhaps older) libaries?
> 
> Thanks,
> Dave
> 
> : undefined reference to `f_clos'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(dmclop.o)(.text+0x83): In function 
> `dm_clop_':
> : undefined reference to `f_open'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flbksp.o)(.text+0x16): In function 
> `fl_bksp_':
> : undefined reference to `f_back'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0x26): In function 
> `fl_path_':
> : undefined reference to `s_copy'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0x33): In function 
> `fl_path_':
> : undefined reference to `s_copy'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0x71): In function 
> `fl_path_':
> : undefined reference to `s_cmp'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0x91): In function 
> `fl_path_':
> : undefined reference to `s_copy'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0xa5): In function 
> `fl_path_':
> : undefined reference to `s_copy'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0xea): In function 
> `fl_path_':
> : undefined reference to `s_cmp'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0x107): In 
> function `fl_path_':
> : undefined reference to `s_copy'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flpath.o)(.text+0x13c): In 
> function `fl_path_':
> : undefined reference to `s_copy'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(flsopn.o)(.text+0x90): In function 
> `fl_sopn_':
> : undefined reference to `f_open'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(stitoc.o)(.text+0x36): In function 
> `st_itoc_':
> : undefined reference to `s_wsfi'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(stitoc.o)(.text+0x56): In function 
> `st_itoc_':
> : undefined reference to `do_fio'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(stitoc.o)(.text+0x64): In function 
> `st_itoc_':
> : undefined reference to `e_wsfi'
> /usr/local/GEMPAK5.8.3a/lib/linux/gemlib.a(stitoc.o)(.text+0x7f): In function 
> `st_itoc_':
> : undefined reference to `s_copy'
> 
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: PQB-907490
Department: Support GEMPAK
Priority: Critical
Status: Closed