Closed viseztrance closed 1 year ago
Compilation in C++ fails unless the -fpermissive flag is set. Standalone raylib works without this flag so it would be nice for rres to do the same.
-fpermissive
/home/daniel/Projects/sigma/vendor/rres/src/rres.h: In function ‘rresCentralDir rresLoadCentralDirectory(const char*)’: /home/daniel/Projects/sigma/vendor/rres/src/rres.h:894:52: error: invalid conversion from ‘void*’ to ‘unsigned char*’ [-fpermissive] 894 | unsigned char *ptr = chunkData.raw; | ~~~~~~~~~~^~~ | | | void* /home/daniel/Projects/sigma/vendor/rres/src/rres.h: In function ‘rresResourceChunkData rresLoadResourceChunkData(rresResourceChunkInfo, void*)’: /home/daniel/Projects/sigma/vendor/rres/src/rres.h:1057:43: error: invalid conversion from ‘void*’ to ‘unsigned char*’ [-fpermissive] 1057 | unsigned int crc32 = rresComputeCRC32(data, info.packedSize); | ^~~~ | | | void* ... many more errors
@viseztrance Thanks for reporting, I will review it as soon as possible.
@viseztrance Can you try just casting to (unsigned char *)? It should solve it, afaik.
(unsigned char *)
Compilation in C++ fails unless the
-fpermissive
flag is set. Standalone raylib works without this flag so it would be nice for rres to do the same.