Im getting the ol' 'error C2501' that is caused by missing storage class or type specifiers.
I have a source file that is including one headerfile:
Expand|Select|Wrap|Line Numbers
- //source
- #pragma once
- #include "DLL.h"
Expand|Select|Wrap|Line Numbers
- //DLL.h
- #pragma once
- #include "DLL_Node.h"
Expand|Select|Wrap|Line Numbers
- //DLL_Node.h
- #pragma once
- #include "DLL.h"
EDIT: Its also worth noting that the error only occurs when declaring a list of type 'DLL' within DLL_Node.h so whenever I comment out 'DLL a_list;" within the node headerfile, the error goes away. I can declare the same datatype within the source file without any errors.
Any help is much appreciated.