The .h file:
#ifndef _WORTHLESS_LIB_H_
#define _WORTHLESS_LIB_H_
typedef struct somestuff stuff_type;
#endif
The .c file:
#include "WorthlessLib.h"
struct somestuff
{
bool didOne;
bool didTwo;
};
When I go to compile I get this output:
Error 1 error C2016: C requires that a struct or union has at least one member e:\users\robert\documents\visual studio 2012\projects\worthlesslib\worthlesslib\worthlesslib.c 8 1 WorthlessLib
Error 2 error C2061: syntax error : identifier 'bool' e:\users\robert\documents\visual studio 2012\projects\worthlesslib\worthlesslib\worthlesslib.c 8 1 WorthlessLib
Error 3 error C2061: syntax error : identifier 'didTwo' e:\users\robert\documents\visual studio 2012\projects\worthlesslib\worthlesslib\worthlesslib.c 9 1 WorthlessLib
Error 4 error C2059: syntax error : ';' e:\users\robert\documents\visual studio 2012\projects\worthlesslib\worthlesslib\worthlesslib.c 9 1 WorthlessLib
Error 5 error C2059: syntax error : '}' e:\users\robert\documents\visual studio 2012\projects\worthlesslib\worthlesslib\worthlesslib.c 11 1 WorthlessLib
And all I know to do is check what the syntax is on the web. This seems as bare-bones as it gets. What am I doing wrong?