使用Check进行C单元测试的问题

使用Check进行C单元测试的问题,c,unit-testing,C,Unit Testing,按照说明使用Visual Studio 2013生成检查0.9.14。这一切进展顺利 然后我尝试链接到.lib,并将标题包含在另一个C项目中(同样由msvc 2013构建) 以下是我的资料来源: #include <stdio.h> #include <check.h> int main(void) { printf("Hello World!\n"); return 0; } 在这方面我找不到太多帮助,有什么想法吗?在包含check.h之前添加type

按照说明使用Visual Studio 2013生成检查0.9.14。这一切进展顺利

然后我尝试链接到.lib,并将标题包含在另一个C项目中(同样由msvc 2013构建)

以下是我的资料来源:

#include <stdio.h>
#include <check.h>

int main(void)
{
   printf("Hello World!\n");
   return 0;
 }

在这方面我找不到太多帮助,有什么想法吗?

在包含
check.h
之前添加
typedef int pid\u t
我猜错误在
头文件中?那么你需要告诉作者,而不是问我们。
C2059: syntax error : ')'
C2059: syntax error : ';'
C2061: syntax error : identifier 'pid'
C2146: syntax error : missing ')' before identifier 'pid'
C2059: syntax error : 'type'
C2061: syntax error : identifier 'check_fork'