Hallo, ich verstehe gerade die Welt nicht mehr. Folgender Code bekommt die Fehlermeldung: ../main.cpp:4: error: ‘aid’ does not name a type.
1 | class lol { |
2 | public:
|
3 | typedef int aId; |
4 | aid Rid; //aid kennt er nicht |
5 | };
|
6 | |
7 | |
8 | int main () { |
9 | lol::aId VARI; //da funktioniert es aber |
10 | return 0; |
11 | }
|
Compiler ist der GCC unter Eclipse in Ubuntu (gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3). Hab ich einen Denkfehler? Danke! Jonathan