http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51468
--- Comment #2 from Dwight Walker <dwight at wwwalker dot com.au> 2011-12-08 17:07:52 UTC --- QtSDK 1.1.4 built GCC (Mingw) Windows 7 Home Premium C:\Users\Dwight\Downloads\nokia\ZXing-1.7\zxing\cpp>c:\python27\python scons\sco ns.py scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o build\testrunner.exe -ldl build\core\tests\src\TestRunner.o build\core\te sts\src\common\BitArrayTest.o build\core\tests\src\common\BitMatrixTest.o build\ core\tests\src\common\BitSourceTest.o build\core\tests\src\common\BlackPointEsti matorTest.o build\core\tests\src\common\CountedTest.o build\core\tests\src\commo n\PerspectiveTransformTest.o build\core\tests\src\qrcode\ErrorCorrectionLevelTes t.o build\core\tests\src\qrcode\FormatInformationTest.o build\core\tests\src\qrc ode\VersionTest.o build\core\tests\src\common\reedsolomon\ReedSolomonTest.o buil d\core\tests\src\qrcode\decoder\DataMaskTest.o build\core\tests\src\qrcode\decod er\ModeTest.o build\libzxing.a -lcppunit c:/qtsdk2/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: can not find -ldl collect2: ld returned 1 exit status scons: *** [build\testrunner.exe] Error 1 scons: building terminated because of errors. I think the dl library is not in the path. I cannot set the path for the gcc so that is why the library is not found and the compile fails.