1
uint8_t *bufferPtr=NULL;
size_t bufferPtrSize=0;
bufferPtr=malloc(bufferPtrSize * sizeof(uint8_t))
我在File1.m中使用了相同的代碼,它工作正常。當我在File2.mm上使用它時,它給我assigning to 'uint8_t *' (aka 'unsigned char *' ) from incompatible type 'void *'
錯誤。從不兼容類型'void *'分配'uint8_t *'(aka'unsigned char *')'
哇,一個新的記憶功能稱爲'mallioc'!一定很棒。你的實際代碼是正確的? – borrrden
@borrrden是我從File1複製到File2的相同代碼 – onkar
有大量的拼寫和代碼格式錯誤,我希望你也不要複製這些錯誤。 – borrrden