Using different compilers with boost.
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
AMDG Dan Smithers wrote:
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/' In Christ, Steven Watanabe
participants (2)
-
Dan Smithers
-
Steven Watanabe