class/struct error - C2628: 'OPTIONS' followed by 'int' is illegal (did you forget a ';'?)

I am trying to create struct within class OPTIONS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
















#include <vector>
// options generated from command line is stored here

class OPTIONS {
	struct COLORS { 
		float hmin; float smin; float vmin;
		float hmax; float smax; float vmax;
		// RGB replacecolor;
		float haddcolor; float saddcolor; float vaddcolor;
	};
	enum  ACTIONS { 
		// determines which member to work with
		// select color and replace color - paranthesis syntax
		selectMin, selectMax, replaceColor, addColor,
		regex, merge,		
		gridBoost, // Boost systems
		// Effects:
		blur, brush, kernel, extend, contract, 
		invert, levels, threshold, 
		softLight, hardLight, pinLight,  
		multiply, color, hue
	};
	struct GRID { 
		// multiplier can be used if grid dimensions are relative to image dimensions
		int w; int h; float wmultiplier; float hmultiplier;
	};
	struct MATRIX { 
		int kerneltype; int kernelw; int kernelh; float factor;
	};
	struct MERGE { 
		// multiplier can be used if grid dimensions are relative to image dimensions
		std::vector<char *> Files;
	};
	struct BLENDING {
		int softLightFactor; int hardLightFactor; int pinLightFactor;
		int multiplyFactor; int colorFactor; int hueFactor;
	};
	struct LEVELS { 
		int inputB; int inputW; int inputG;
		int outputB; int outputW; int outputG;
	};
}

int main ()
{return 0;}


I got these errors:

error C2628: 'OPTIONS' followed by 'int' is illegal (did you forget a ';'?)
error C3874: return type of 'main' should be 'int' instead of 'OPTIONS'
error C2440: 'return' : cannot convert from 'int' to 'OPTIONS'
No constructor could take the source type, or constructor overload resolution was ambiguous

The messages are to the lines:
1
2
int main ()
{return 0;}

but I am convinced that there is error in the class or struct.
If I remove main function I got error fatal error C1004: unexpected end-of-file found

Where is the error?
Last edited on
line 58 - put semicolon after closing brace for the class
Thanks
Topic archived. No new replies allowed.