Hi!! I have a error from IDE(code::blocks) while i m trying to load image.
Here is the code
sf::Texture texture;
if (!texture.loadFromFile("brickwall.jpg"))
{
cout << "FAIL";
}
else
{
cout<<"DIDN'T FAIL";
}
And here is the error:
||=== Build: Debug in OpenGLprj10 (compiler: GNU GCC Compiler) ===|
||Warning: corrupt .drectve at end of def file|
obj\Debug\main.o||In function `main':|
D:\CodeBlocks\projects\OpenGLprj10\main.cpp|38|undefined reference to `_imp___ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE'|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 1 warning(s) (0 minute(s), 1 second(s)) ===|