Re: newbie boost sample compile program

"Martin Lemieux" < mailto:lemieux@cae.com lemieux<at>cae.com> wrote:
On AIX v5.2 here are the boost_filesystem* libraries I have under /usr/local/lib libboost_filesystem-xlc-1_32.a libboost_filesystem-xlc-1_32.so libboost_filesystem-xlc-d-1_32.a libboost_filesystem-xlc-d-1_32.so libboost_filesystem-xlc-d.a libboost_filesystem-xlc-d.so libboost_filesystem-xlc-mt-1_32.a libboost_filesystem-xlc-mt-1_32.so libboost_filesystem-xlc-mt-d-1_32.a libboost_filesystem-xlc-mt-d-1_32.so libboost_filesystem-xlc-mt-d.a libboost_filesystem-xlc-mt-d.so libboost_filesystem-xlc-mt.a libboost_filesystem-xlc-mt.so libboost_filesystem-xlc.a libboost_filesystem-xlc.so
On AIX (maybe all unix's) boost libraries are found in /usr/local/lib
Then (usually at the end of the command line) add the library file you like. May I the a static one (.lib). Your command line should look like:
No boost libraries with a .lib extension
xlc++ -o simple_ls simple_ls.cpp -I /usr/local/include -L /usr/local/include/boost-1_32/boost/lib boost_filesystem-AIX-mt-1_31.lib
the actual xlc++ compiler command line that worked was: xlc++ -o simple_ls simple_ls.cpp -I /usr/local/include -lboost_filesystem-xlc-1_32 -L/usr/local/lib NOTE: after the -l the three letters "lib" are removed from the front of the actual library name.
On my Windows 2000 the file "libboost_filesystem-vc6-sgd-1_32.lib" is found in c:\boost\lib Martin, thanks for your help. I would have never got this working without your assistane.
participants (2)
-
Brian Gaber
-
Martin Lemieux