This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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. |
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |