newbie question: how to make boost helloworld in linux

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

newbie question: how to make boost helloworld in linux

kdsfinger
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

_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users