29 Jul
2005
29 Jul
'05
9:42 a.m.
basedir = E:/DigS boostdir = E:/boost_1_32_0 boostlibdir = ${boostdir}/stage/lib boostlibtype = -mgw-mt-1_32 boostlibs = ${boostlibdir}/boost_regex${boostlibtype}.dll boosttestlibs = ${boostlibdir}/libboost_unit_test_framework${boostlibtype}.lib . . . test : ${testobjs} ${CXX} -o test ${boosttestlibs} ${boostlibs} test.o ${testobjs}
When linking with gcc the order in which the libraries and object files appear is *very* important, in particular any libraries you plan to link against must appear *after* the object files that require them, so I'm guessing you need: ${CXX} -o test ${testobjs} ${boosttestlibs} ${boostlibs} HTH, John.