http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51468
Bug #: 51468 Summary: cannot find -ldl and collect 2 ld returned 1 exit status Classification: Unclassified Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: dwi...@wwwalker.com.au When I run a build using scons build script with g++ and -ldl switch, it returns cannot find -ldl and collect 2 ld returned 1 exit status and compile fails to build an exe. I am using g++ in mingw on Windows 7.