> So clearly, the identifier is optional. Either MS' compiler is
broken, or the error indicates something else.
It's legal C, but it's causing problems when I include the header in my
C++ file. I think (not sure) that it's not legal C++.
typedef struct IGMPI_Plugin { struct IGMPI_Plugin *Vtable; }IGMPI_Plugin;
does compile (not sure why I didn't try that earlier)..
Jeff
On Fri, Feb 11, 2005 at 02:06:58PM +1300, Jeff McClintock wrote:
typedef struct { struct IGMPI_PluginVtbl *Vtbl; } IGMPI_Plugin;
Bill Gates don't like it...
error C2371: 'IGMPI_Plugin' : redefinition; different basic types
I don't know what that error means, but the K&R (ANSI) book says:
struct-or-union-specifier: struct-or-union identifier(opt) { struct-declaration-list } struct-or-union identifier
So clearly, the identifier is optional. Either MS' compiler is broken, or the error indicates something else.
And if we need, I'll email Kernighan - apparantly he works here, too now. :P
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe