The example works if you compile it by this:
$ cobra x-flags
But if you compile it by this
$ cobra -namespace:Foo x-flags
it causes: 'error: cannot find "Flags". '
At kobi7:
Maybe you made the code "enum Options ..." with this add-in (MonoDevelop.CobraBinding.0.5.1):
http://cobra-language.com/forums/viewtopic.php?f=4&t=17215
If you create a new Project with this add-in, for example "Foo", then the "Project Options -Foo" are initialized with "Default Namespace: Foo".
When you "Build" this project, the add-in calls the Cobra compiler with the compiler command line argument
- "-namespace:Foo"
... and that causes the error message.
If this is the case, then you have two options:
Either
- Delete the "Default Namespace" in the "Project Options - Foo" dialog
(Then the addin calls the Cobra compiler without the "-namespace:..." argument)
Or
- say "System.Flags" instead of "Flags":
- Code: Select all
enum Options
has System.Flags
...