Hello,
I am having trouble using the TLinearFitter class.
This trouble is really fundamental. So, I expect, that I
am not setting this up correctly.
Can anyone give me a short example of how to use this class?
Here is my sample code. It won’t compile.
#include “TLinearFitter.h”
#include “TApplication.h”
int main(int argc,char **argv){
TApplication theApp(“App”, &argc, argv);
TLinearFitter *lf = new TLinearFitter();
return 0;
}
Given tha compiler command:
g++ -o lfTest -L/home/demiller/ROOT5.06.00/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -pthread -lm -ldl -rdynamic -pthread -I/home/demiller/ROOT5.06.00/root/include lfTest.cc
I get these compiler errors:
/tmp/ccmmrlKS.o(.text+0x4e): In function main': : undefined reference to
TLinearFitter::TLinearFitter()'
collect2: ld returned 1 exit status
What have I left out?
Thank you.
-David Eric Miller