Never mind; it's because I didn't include some other files on which
myfunctions.c depends. That's kind of a strange error for it to give me,
though - the error message has nothing to do with the problem!
-Ed
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Ed Cottrell
Sent: Monday, December 29, 2003 11:19 PM
To: dev...@li...
Subject: [Dev-C++] Struct defined in external file
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
|