Re: Undefined References
"Joel Bryan Juliano" <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
Oh truck! I fix it, just make sure to compile before any other library that reference it. i.e. gcc -o foo main.o -lfoo On Fri, Sep 19, 2008 at 8:38 AM, Joel Bryan Juliano <[email protected]> wrote: > I have written a simple yaml parser to read a yaml file in C, but > whenever I compile it, it gives me the following errors, > > undefined reference to `yaml_parser_initialize' > undefined reference to `yaml_parser_set_input_file' > undefined reference to `yaml_parser_parse' > undefined reference to `yaml_event_delete' > undefined reference to `yaml_parser_delete' > undefined reference to `yaml_parser_delete' > collect2: ld returned 1 exit status > > I have followed everything in the example and included <yaml.h> in my > source, how do I fix this? > > I'm using GCC 4.3.2, Ubuntu Intrepid. > > -- > "It is not the things we do in life that we regret, on our deathbed, > it is the things we do not. > > Find your passions, and follow it, and if there's anything I have > learned in my life, you will not find those passions in things, and > you will not find those passion in money. Because the more things and > money you have, the more you will just look around and use that as a > metric, there will always be someone with more. > > That passions will be grounded in people. And it would be grounded in > relationships you have with people and what they think of you, when > your time comes." > > - Randy Pausch > -- "It is not the things we do in life that we regret, on our deathbed, it is the things we do not. Find your passions, and follow it, and if there's anything I have learned in my life, you will not find those passions in things, and you will not find those passion in money. Because the more things and money you have, the more you will just look around and use that as a metric, there will always be someone with more. That passions will be grounded in people. And it would be grounded in relationships you have with people and what they think of you, when your time comes." - Randy Pausch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/