G
Guest
Hello everyone,
I get a strange compile error when compile such simple program. Any ideas?
foo.c: In function `main':
foo.c:5: error: storage size of 'var' isn't known
foo.c
goo.c
goo.h
thanks in advance,
George
I get a strange compile error when compile such simple program. Any ideas?
foo.c: In function `main':
foo.c:5: error: storage size of 'var' isn't known
foo.c
Code:
#include "goo.h"
int main (int argc, char** argv)
{
t_st var;
var.member = 100;
return 0;
}
goo.c
Code:
struct st {
int member;
};
goo.h
Code:
typedef struct st t_st;
thanks in advance,
George