Solved a linker problem while compiling the project from inside code::blocks.