Hi to all,
I have a small problem using enums with chibistudio.
If I compile my project with the following piece of code:
The compier does its job without errors.
If I de-comment the line of the declaration of valve1 I have the following error:
^
I don't have other declarations of valve1, so I don't know which C rule I am breaking
Thanks to all for reading.
Enum definition and declaration
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Enum definition and declaration
Hi,
Note that it is a linker error, probably you have that same symbol in another module OR that code is placed in a header, placing variable declarations in headers creates an instance each time the header is included.
Giovanni
Note that it is a linker error, probably you have that same symbol in another module OR that code is placed in a header, placing variable declarations in headers creates an instance each time the header is included.
Giovanni
Who is online
Users browsing this forum: No registered users and 6 guests