The question is whyuint32_tis of typelong unsigned int? With v4.4 it is building without problems. Thanks EDIT HINT: The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include <inttypes.h> header file). ...
func(d *Device)FilesAndFolders(storageIduint32, parentIduint32)(files []*File, err error){ file := C.LIBMTP_Get_Files_And_Folders(d.me(), C.uint32_t(storageId), C.uint32_t(parentId))forf := (*File)(file); f !=nil; f = (*File)(f.next) { files =append(files, f) ...
Just in case anyone faces the same issue as me... I solved it by moving#define NRF52832_XXAAwhich is used innrf.hintoc_cpp_properties.json. It makes more sense now that"defines"is defined as "A list of preprocessor definitions for the IntelliSense engine to use while parsing files." "...