Sei su windows? In code::blocks provi a linkare le librerie che hai installato?