I have some code that I've successfully compiled in a couple of compilers. I am now trying to use CodeBlocks with the GCC compiler. I have a header file that declares a number of structures that are used in a DLL. The declarations look like this:
Code:
extern struct structure1 {float var1, double var2, int var3};
The numbers of variables in the structures and their precisions vary. But each one of them is generating the error in the tag line:
a storage class can only be specified for objects and functions
Why? How do I correct it? What is different between this compiler and something like VisualStudio where it builds successfully?
Thank you, in advance, for your help and suggestions.