* How to list all calls a library contained?
@ 2000-11-15 0:21 Yiyan Yang
2000-11-15 0:56 ` Gerald Pfeifer
2000-11-15 0:56 ` Eric Christopher
0 siblings, 2 replies; 3+ messages in thread
From: Yiyan Yang @ 2000-11-15 0:21 UTC (permalink / raw)
To: gcc-help, gcc; +Cc: Yiyan Yang
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
Title: ÃÃû
Hi,
I wrote a small program, but it can not be
linked using
Â
   gcc -o a
c.c
Â
and gcc report the following
errors:
Â
Undefined                     Â
first
referenced  symbol                           Â
in
file cout                              Â
/var/tmp/ccrtPGcY.o ostream::operator<<(char const *)Â Â
/var/tmp/ccrtPGcY.o ld: fatal: Symbol referencing errors. No output written
to c collect2: ld returned 1 exit status
How can I determine which library should I link
to if I call some standard functions?
Â
Thank you!
Â
Â
Edward Yang
Â
AISW-PSO NORTH Dep. Asiainfo Technologies
(China), Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to list all calls a library contained?
2000-11-15 0:21 How to list all calls a library contained? Yiyan Yang
@ 2000-11-15 0:56 ` Gerald Pfeifer
2000-11-15 0:56 ` Eric Christopher
1 sibling, 0 replies; 3+ messages in thread
From: Gerald Pfeifer @ 2000-11-15 0:56 UTC (permalink / raw)
To: Yiyan Yang; +Cc: gcc-help, gcc, Yiyan Yang
On Wed, 15 Nov 2000, Yiyan Yang wrote:
> Hi,
> I wrote a small program, but it can not be linked using
>
> gcc -o a c.c
>
> and gcc report the following errors:
Name the program c.cc and use g++ instead of gcc.
However, please note that these lists are for developing GCC and help
on installing GCC (see < http://gcc.gnu.org/lists.html > for details); so
basic questions like these are not appropriate here.
Please read the manual and our instructions at < http://gcc.gnu.org > and
probably a good book on learning C++.
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
"Well, we have Haider, but you cannot become president with less than 50%
of the votes, let alone less votes than your competitors, here in Austria."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to list all calls a library contained?
2000-11-15 0:21 How to list all calls a library contained? Yiyan Yang
2000-11-15 0:56 ` Gerald Pfeifer
@ 2000-11-15 0:56 ` Eric Christopher
1 sibling, 0 replies; 3+ messages in thread
From: Eric Christopher @ 2000-11-15 0:56 UTC (permalink / raw)
To: Yiyan Yang; +Cc: gcc-help, gcc, Yiyan Yang
You'll want to look at info to find out the number of functions in a
library. Otherwise you need to write better questions.
nm foo.a | wc -l
or info nm.
-eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-11-15 0:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-15 0:21 How to list all calls a library contained? Yiyan Yang
2000-11-15 0:56 ` Gerald Pfeifer
2000-11-15 0:56 ` Eric Christopher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).