[Dev-C++] Struct defined in external file
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ed C. <em...@to...> - 2003-12-30 04:17:41
|
Hi all,
I'm desperate and hoping somebody here can help.
I have a project with a struct defined like this in myfile.h:
typedef struct { SQLINTEGER id; } mystruct;
In another file, myfunctions.c, I have:
#include "myfile.h"
void functiona(mystruct * ptrmystruct)
{
//some junk
return;
}
When I compile, I get errors:
[in myfunctions.c:] In file included from myfunctions.c
[in myfile.h] parse error before "SQLINTEGER"
[in myfile.h] [Warning] no semicolon at end of struct or union
What is this about?
-Ed
|