Re: undefined symbols in object file

tom fogal <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
suma s <[email protected]> writes:
> correct me if iam wrong....as per i know..when ever any C file
> complies to an object file.. all the symbols in the object file has
> to be defined right ??...

no.  in:

  #include <stdio.h>
  int main() { puts("hi!"); }

`puts' will be an undefined symbol in the .o. it gets resolved when you
link the .o into an executable.

-tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.