[classad-users] Please help


Date: Thu, 03 Jun 2010 12:21:52 -0500
From: Xin Tang <xtang3@xxxxxxxx>
Subject: [classad-users] Please help
Hi all,

I am a new user to classAds and I wish someone could give me some helps to get start with this language. The library I am using is Version 1.0.7 and I tried to run the given file sample.cpp as the README file suggests, but I got some errors which I have no clue how to fix. Below is the command I used(it includes some flags required by the tutorial(http://www.cs.wisc.edu/condor/classad/c++tut.html#prelim)):

g++ classads-1.0.7/sample.cpp -I./include -L./lib

Here are the error messages I got:

/tmp/ccsnP3sf.o: In function `main':
sample.cpp:(.text+0x17d): undefined reference to `ClassAdParser::ClassAdParser()'
sample.cpp:(.text+0x193): undefined reference to `ClassAdParser::ParseClassAd(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
sample.cpp:(.text+0x1ad): undefined reference to `ClassAdParser::ParseClassAd(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
sample.cpp:(.text+0x1bd): undefined reference to `PrettyPrint::PrettyPrint()'
sample.cpp:(.text+0x1e3): undefined reference to `ClassAdUnParser::Unparse(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, ExprTree const*)'
sample.cpp:(.text+0x1f7): undefined reference to `ClassAdUnParser::Unparse(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, ExprTree const*)'
sample.cpp:(.text+0x25b): undefined reference to `MatchClassAd::MatchClassAd(ClassAd*, ClassAd*)'
sample.cpp:(.text+0x28a): undefined reference to `ClassAd::EvaluateAttrBool(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool&) const'
sample.cpp:(.text+0x33d): undefined reference to `MatchClassAd::~MatchClassAd()'
sample.cpp:(.text+0x359): undefined reference to `MatchClassAd::~MatchClassAd()'
sample.cpp:(.text+0x3c4): undefined reference to `PrettyPrint::~PrettyPrint()'
sample.cpp:(.text+0x3e0): undefined reference to `PrettyPrint::~PrettyPrint()'
sample.cpp:(.text+0x3f5): undefined reference to `ClassAdParser::~ClassAdParser()'
sample.cpp:(.text+0x41d): undefined reference to `ClassAdParser::~ClassAdParser()'
collect2: ld returned 1 exit status

Thank you in advance for any help you can provide.

Xin

[← Prev in Thread] Current Thread [Next in Thread→]