Re: [Boost-users] Using different compilers with boost

26 Jan
2009
26 Jan
'09
11:12 a.m.
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
/lib/libboost_xxx-gcc34-mt-1_37.so and /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.
gcc -dumpversion is more useful for automated processing.
For example, gcc -dumpversion | perl -p -e 's/(\d)\.(\d)\.\d/-lboost_xxx-gcc$1$2-mt-1_37/'
Thanks Steven, just what I was looking for. dan
5872
Age (days ago)
5872
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dan Smithers