RE: [Boost-users] hello world in boost ?
I can tell you that on a fedora/redhat box, you just include the headers and you are away. If you installed the development package group it will be there and you can build c++ programs and use boost out of the box. What distro are you using? Gaz -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Justin Findlay Sent: 10 November 2004 07:58 To: boost-users@lists.boost.org Subject: Re: [Boost-users] hello world in boost ? On Wed, Nov 10, 2004 at 01:33:36AM -0500, paul wisehart wrote:
I am able to compile the boost libaray on my linux machines. I am not able to use it.
Is there a simple program I can try to compile to make sure I am doing things correctly.
I'm sorry. its a shortcoming of mine, but I can't do _anything_ until I have a working stub. (or hello_world, or wahtever you want to call it.)
I just need a simple example of how to compile a boost prohram from g++ .
Which library are you wanting to enhance the efficacy of your hello world program with? Most (all?) the boost libs documentation include usage and simple examples. Justin _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
OK OK I got it finally ! THanks for your help. Now that I'm looking back its sorta obvious, but I guess I didn;t really now that when you use "-l<some-lib>" with g++ (any compiler?) the its just the name of the physical library in "/usr/local/lib" (or wherever) with the "lib" part cut off. So I was able to get a hello_world.cpp to compile by doing: g++ \ -lboost_regex-gcc \ -L/usr/local/lib \ -I/usr/local/include/boost-1_31 \ hello_world.cpp It was the "-lboost_regex-gcc" part that was tripping me up. I wasn't putting the "-gcc" on the end. Thanks again! -- paul \ / wisehart >/ /////$> |\|\|\
participants (2)
-
Foster, Gareth
-
paul wisehart