【发布时间】:2012-04-23 18:43:47
【问题描述】:
结构定义
struct list
{
struct list **next, **prev;
}
core.c
//Global struct
struct list *threads = {&threads, &threads}; //Warnings here:
// warning: initialization from incompatible pointer type
// warning: excess elements in scalar initializer
// warning: (near initialization for 'threads')
PS:我在这个文件中没有main 函数。这必须是全球性的。
【问题讨论】:
标签: c struct initialization global