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

[UDUNITS #PPR-301422]: Help,how to install install UDUNITS

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [UDUNITS #PPR-301422]: Help,how to install install UDUNITS
  • Date: Thu, 26 Jun 2008 09:34:08 -0600

Dear Liu Guangping,

> I konow i should not bother you.This is not your work.
> However,i don't konw how to settle the problem as following:
> 
> usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/libfrtbegin.a(frtbegin.o): 
> In function `main':(.text+0x35): undefined reference to `MAIN__'collect2: ld 
> returned 1 exit status
> 
> when i compile the readgeneral.F.

The error message indicates that the linker couldn't find the symbol
MAIN__ when it tried to link the program together.

What was the link command?

You can try to find the symbol by using the nm(1) utility on the
system libraries.  For example

nm -g /usr/lib/lib*.a | grep MAIN__

This might tell you how the link command must be modified in order to
find the symbol.

> Thank you very much! Hoping to hear from you soon.
> Wish best regards!
> Yours respectfully,
> Liu Guangping
> _________________________________________________________________
> MSN 中文网,最新时尚生活资讯,白领聚集门户。
> http://cn.msn.com


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: PPR-301422
Department: Support UDUNITS
Priority: Normal
Status: Closed