Local instalation in MacOs with gcc

I am installing root in my mac (intel with gcc 4.0). And everything goes
Ok except that I have to create a soft link:

$ ls -l /Users/bellenot/ROOT/osx104_ia32_gcc401/
total 8
lrwxr-xr-x 1 root admin 16 May 5 12:18 root -> /Users/root/root

That way things compile and run with:

g++ -O -Wall -fPIC -m32 -bind_at_load -I/Users/root/root/include -c calibraH1.cxx

g++ -O -m32 calibraH1.o -L/Users/root/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm -ldl
-o calibraH1

except for the TFile object!?!

I have the line:

TFile *output_file = new TFile(“calib.root”,“RECREATE”);

in my code and linking I get:

/usr/bin/ld: Undefined symbols:
TFile::TFile(char const*, char const*, char const*, int)
collect2: ld returned 1 exit status

any idea?

Thanks a lot.



Add -lRIO
Actually simply would to replace the -l with root-config --libs