salut,
la mine mere (2.95.3 (default in slack8))
root@cat:~# cat p.cpp
class test {
public:
enum tip {unu, doi, not, and};
tip x;
};
void main()
{
test obj;
obj.x = test::not;
}
root@cat:~# gcc p.cpp -o p
root@cat:~# ./p
root@cat:~# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
On Mon, 21 Jan 2002, Adrian Mihalcea wrote:
> Salutare lista.
>
> Am o �ntrebare scurt�. Programul urm�tor ar trebui s� poat� fi compilat, sau
> nu? Eu folosesc gcc-2.96 care a venit cu RedHad 7.1 �i nu-mi merge. Am
> �ncercat �i un compilator 3.0 care vine cu un RedHat 7.2 �i tot nu compileaz�.
> Totu�i, cu un compilator gcc-2.95 de pe un sistem SuSe �i cu orice compilator
> de pe Windows, programul trece f�r� probleme.
>
> Iat� programul test.cpp
>
> class test {
> public:
> enum tip {unu, doi, not, and};
> tip x;
> };
> void main(void){
> test obj;
> obj.x=test::not;
> }
>
>
> �n caz c� programul NU ar fi trebuit s� mearg� pe celelalte compilatoare,
> poate da�i �i o scurt� explica�ie.
>
> Mul�umesc.
> Adi
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
>
>
-----
Ionut Spirlea,
http://sgi.rdscv.ro/~ionuts/
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.