esp32_nesemu icon indicating copy to clipboard operation
esp32_nesemu copied to clipboard

struct stat st - incomplete type is not allowedC/C++

Open Jailin opened this issue 2 years ago • 1 comments

`esp_err_t registerSpiffs() { esp_vfs_spiffs_conf_t conf = { .base_path = "/spiffs", .partition_label = NULL, .max_files = 32, .format_if_mount_failed = false};

esp_err_t ret = esp_vfs_spiffs_register(&conf);

ASSERT_ESP_OK(ret, "Failed to mount SPIFFS partition.");
struct stat st;
if (stat(ROM_LIST, &st) != 0)
{
	printf("Cannot locate rom list in %s", ROM_LIST);
}
return ret;

}`

Jailin avatar Oct 06 '23 01:10 Jailin

`esp_err_t registerSpiffs() { esp_vfs_spiffs_conf_t conf = { .base_path = "/spiffs", .partition_label = NULL, .max_files = 32, .format_if_mount_failed = false};

esp_err_t ret = esp_vfs_spiffs_register(&conf);

ASSERT_ESP_OK(ret, "Failed to mount SPIFFS partition.");
struct stat st;
if (stat(ROM_LIST, &st) != 0)
{
	printf("Cannot locate rom list in %s", ROM_LIST);
}
return ret;

}`

I'm continuing the project. I've already managed to compile it. I'm just making an error with images, but I'm almost solving it too. Follow the link: https://github.com/paulo101977/esp32_nesemu

paulo101977 avatar Sep 18 '24 00:09 paulo101977