nb: Этот вопрос был уменьшен много раз, из-за комментариев. Ниже приведено минимальное количество кода, сгенерировавшего ошибку. Файл inttypes.h был загружен отсюда: ffMPEG "inttypes.h not found" error), который считался проблемой в начале.inttypes.h header issue
//tlvlist.c
static int32_t test(somestruct *a);
/* Private method, adds tlv object to the list which contains raw binary data. */
int32_t int32_t test(somestruct *a)
{
/* Some checks */
if(a == NULL || bytes == NULL)
return -1;
/* Check if list is full */
if(a->used == MAX_LIST_SIZE)
return -1;
/* Index to first free element in the list */
int iIndex = a->used;
// ...
return 0;
}
ошибки:
tlvlist.c
c:\users\documents\visual studio 2012\projects\tlv list\tlv list\tlvlist.c(21): error C2143: syntax error : missing ';' before 'type'
c:\users\documents\visual studio 2012\projects\tlv list\tlv list\tlvlist.c(23): error C2065: 'iIndex' : undeclared identifier
c:\users\documents\visual studio 2012\projects\tlv list\tlv list\tlvlist.c(24): error C2065: 'iIndex' : undeclared identifier
c:\users\documents\visual studio 2012\projects\tlv list\tlv list\tlvlist.c(28): error C2065: 'iIndex' : undeclared identifier
c:\users\documents\visual studio 2012\projects\tlv list\tlv list\tlvlist.c(29): error C2065: 'iIndex' : undeclared identifier
c:\users\documents\visual studio 2012\projects\tlv list\tlv list\tlvlist.c(32): error C2065: 'iIndex' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Невозможно сообщить, не установив код, вызывающий ошибку. Попробуйте уменьшить 'tlvlist.c' до * small * подмножества, которое обнаруживает проблему, и включить исходный файл в ваш вопрос. –
@KeithThompson: пожалуйста, посмотрите, если это помогает –
'' - это надмножество '', и вы, кажется, не используете ничего, что не находится в '' (что, по-видимому, доступно). Вы уверены, что вам нужно ''? –