make sure your complier linker settings include these libraries, not just in the code itself.