Not able to link , although the path is to the right location of library files.
Hi,
I am new to Mac

So, I need the help of Mac Pros over here.
I am using Xcode (3.1), and I am trying to add boost library to it. I have completed the steps of building the library using bjam tool and I find that the right path is being pointed to during build, however, compilation of code goes fine and linking fails.
Details:
I am using boost threads in my minor example code.
Error thrown and command:
Ld build/Debug/trial normal x86_64
cd /Users/siddharthshankaran/Documents/trial
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/siddharthshankaran/Documents/trial/build/Debug -L
/Users/siddharthshankaran/Library/boost_1_43_0/stage/lib -F/Users/siddharthshankaran/Documents/trial/build/Debug -filelist /Users/siddharthshankaran/Documents/trial/build/trial.build/Debug/trial.build/Objects-normal/x86_64/trial.LinkFileList -mmacosx-version-min=10.6 -o /Users/siddharthshankaran/Documents/trial/build/Debug/trial
Undefined symbols:
"typeinfo for boost::detail::thread_data_base", referenced from:
typeinfo for boost::detail::thread_data<void (*)()>in main.o
"boost::thread::start_thread()", referenced from:
boost::thread::thread<void (*)()>(void (*)(), boost::disable_if<boost::is_convertible<void (*&)(), boost::detail::thread_move_t<void (*)()> >, boost::thread::dummy*>::type)in main.o
"boost::detail::thread_data_base::~thread_data_base()", referenced from:
boost::detail::thread_data<void (*)()>::~thread_data()in main.o
boost::detail::thread_data<void (*)()>::~thread_data()in main.o
"vtable for boost::detail::thread_data_base", referenced from:
boost::detail::thread_data_base::thread_data_base()in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
structure of my boost library:
bash-3.2$ ls *thread*
libboost_thread-xgcc42-mt-1_43.a libboost_thread-xgcc42-mt-s.a
libboost_thread-xgcc42-mt-1_43.dylib libboost_thread-xgcc42-mt-sd-1_43.a
libboost_thread-xgcc42-mt-d-1_43.a libboost_thread-xgcc42-mt-sd.a
libboost_thread-xgcc42-mt-d-1_43.dylib libboost_thread-xgcc42-mt.a
libboost_thread-xgcc42-mt-d.a libboost_thread-xgcc42-mt.dylib
libboost_thread-xgcc42-mt-d.dylib libboost_thread.a
libboost_thread-xgcc42-mt-s-1_43.a libboost_thread.dylib
bash-3.2$ pwd
/Users/siddharthshankaran/Library/boost_1_43_0/stage/lib
What possibly could be wrong now? Compilation succeed and its only the linking part that's failing. Please help in this.
Or else, suggest me some way to redo it form scratch in a way that it would work! Thanks in advance!!
