Re: ZeroLink: unknown symbol
Re: ZeroLink: unknown symbol
- Subject: Re: ZeroLink: unknown symbol
- From: Giacomo Monari <email@hidden>
- Date: Sun, 26 Aug 2007 09:37:03 +0200
Finlay Dobbie ha scritto:
On 26/08/07, Giacomo Monari <email@hidden> wrote:
Kyle Sluder ha scritto:
On 8/25/07, Giacomo Monari <email@hidden> wrote:
What's this problem with undefined symbols and how can I resolve it?
Thank you very much,
Giacomo
Obviously you're not linking with the library that defines the
"undefined symbol". You can't expect the linker (ld) to be able to
build a program if it can't find all of its components. Add the
appropriate library to your Link with Library phase.
ZeroLink is evil (in the way that the C++ FAQ uses "evil"). Disable
it if you want predictable behavior, especially when you're trying to
figure out why ZeroLink is giving you unpredictable behavior.
--Kyle Sluder
Ah, thx Kyle... But what library I have to add? I'm working with
iterators of vectors... Shouldn't be they defined simply including
<vector>? And what's Library phase?
The missing symbols look like a constructor and destructor for the
"DataAnalysis" class, which is obviously something of your own. Read
the error message carefully.
And it's the "Link with Libraries" phase, not link with "libraries
phase". It's a build phase. Of your target. See the Xcode
documentation for more information.
-- Finlay
Yes, the Class DataAnalysis is mine... This is the definition of my
class:
template <typename Itr, typename TYPE>
template
<typename Itr, typename TYPE>
class DataAnalysis
{
private:
Itr dataFirst;
Itr dataLast;
bool isData;
TYPE max;
bool isMax;
TYPE min;
bool isMin;
TYPE average;
bool isAverage;
TYPE variance;
bool isVariance;
TYPE stdDeviation;
bool isStdDeviation;
TYPE skewness;
bool isSkewness;
TYPE kurtosis;
bool isKurtosis;
public:
// constructors
DataAnalysis();
DataAnalysis(Itr inDataFirst, Itr inDataLast);
// destructor
~DataAnalysis();
// access functions
TYPE GetMax();
TYPE GetMin();
TYPE GetAverage();
TYPE GetVariance();
TYPE GetStdDeviation();
TYPE GetSkewness();
TYPE GetKurtosis();
// mutation functions
TYPE FindMax();
TYPE FindMin();
TYPE ComputeAverage();
TYPE ComputeVariance();
TYPE ComputeStdDeviation();
TYPE ComputeSkewness();
TYPE ComputeKurtosis();
void CreateHistogram(Itr xFirst, Itr xLast, Itr yFirst, Itr
yLast);
};
The error occurs as soon as there's an instance of an object of the
class DataAnalysis... I checked beetween the "Project Symbols" and the
constructors and the destructor seem to be there... So why are they
undefined? And how can I add something to define missing symbols
(something that works with other compilers too)?
Thx you very much,
Giacomo
----
Email.it, the professional e-mail, gratis per te:clicca qui
Sponsor:
250 biglietti da visita Gratis + 42 modelli e Etichette per Indirizzo Gratis + Porta biglietti Gratis -Offerta limitata!
Clicca qui
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden