
23 Jan
2009
23 Jan
'09
2:36 p.m.
Hi, I need to use several compilers for my project for different target computers. I have built boost 1.37 for gcc 4.1.2 and 3.4.3 and everything seems to be nicely set up as <boost_dir>/lib/libboost_xxx-gcc34-mt-1_37.so and <boost_dir>/lib/libboost_xxx-gcc41-mt-1_37.so. Is there anyway of automatically detecting which version to link? I suppose that gcc --version and some sort of awk script could do this. thanks dan