Re: Open Watcom and Open Eu
Al Getz wrote:
>
> Hello again,
>
> Now that Eu will be open, many of us will be using Open Watcom
> to compile our personal versions so here is a question...
>
> The C++ keyword 'static' when used at file level is supposed
> to keep a variable visible to that file only, yet it doesnt
> seem to work, because even if you define a var as static
> in one file if you go to define it in another file (also as
> static) the compiler complains.
>
> Example:
>
> //in file A.h:
> static abc;
>
> //in file B.h:
> static abc;
>
> This generates compiler error:
> " abc already defined " !!!
>
> Any ideas?
I think you're confusing C with C++. Here's a page about the topic:
http://www.everything2.com/index.pl?node_id=1347400
It sounds like you're writing C code, but compiling as C++ (Open
Watcom uses file extension to determine the language).
Matt Lewis
|
Not Categorized, Please Help
|
|