"Unresolved external" means that you are trying to use something that the linker cannot find the compiled code for. Usually, this happens when you forget to link against the right libraries.
Using gcc, by adding -lLIBRARYNAME when you type the command to build. On an IDE such as you're using, I expect that somewhere in one of the menus is a way to specify libraries to link against.