(11-23-2017, 08:36 AM)Techie Android Wrote: @Tino
Okay, done. Now this happened.
Code:
/home/austin/Ishiiruka/Source/Core/VideoCommon/TextureUtil.cpp:189:40: error: ‘memcpy’ was not declared in this scope
memcpy(pDst, pSrc, rowsize * height);
^
/home/austin/Ishiiruka/Source/Core/VideoCommon/TextureUtil.cpp:195:33: error: ‘memcpy’ was not declared in this scope
memcpy(pDst, pSrc, rowsize);
^
/home/austin/Ishiiruka/Source/Core/VideoCommon/TextureUtil.cpp: In function ‘void TextureUtil::CopyCompressedTextureData(u8*, const u8*, s32, s32, s32, s32, s32)’:
/home/austin/Ishiiruka/Source/Core/VideoCommon/TextureUtil.cpp:227:42: error: ‘memcpy’ was not declared in this scope
memcpy(pDst, pSrc, rowBytes * numRows);
^
/home/austin/Ishiiruka/Source/Core/VideoCommon/TextureUtil.cpp:236:43: error: ‘memcpy’ was not declared in this scope
memcpy(pDestBits, pSrcBits, rowBytes);
memcpy() is provided by the C <string.h> headers - so in c++ it's the <cstring> header.
So adding "#include <cstring>" with the includes in TextureUtil.cpp should fix that.
For things such as this - you can either lookup library functions in the posix man pages (if on linux) - or cppreference.com (e.g. http://en.cppreference.com/w/cpp/string/byte/memcpy )
Part of "learning" a language is figuring out what references are available and how to understand and use them - nobody remembers everything in a language.
