hi, boost users

Can someone tell me how to build boost helloworld.cpp in linux using g++? I have boost installed via yum in my fc3 box. Here is my code.

//test.cpp
#include <boost/shared_ptr.hpp>
#include <iostream>

int main(){
    std::cout<<"helloworld";
    return 0;
}

g++ test.cpp //can't find boost.

Thanks in advance.

zl2k