Error undeclared indentifier

Hello sweety community

Im having the last errors in my compilation, I think i know what's wrong, but the point is that i dont know how to declare it.

Is there anyone that can help me with this?

Error log:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
C:\Users\utente\Desktop\dev\Sources\_Interface\FuncTextCmd.cpp(1583): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1309): error C2065: 'g_pPVP' : undeclared identifier
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1309): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1311): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1311): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1315): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1315): error C2228: left of '.pID' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1315): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1331): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1331): error C2228: left of '.Place' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1331): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1333): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1333): error C2228: left of '.szName' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1333): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1335): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1335): error C2228: left of '.Kills' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1335): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1337): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1337): error C2228: left of '.Deaths' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1337): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1339): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1339): error C2228: left of '.Kills' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1339): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1339): error C2228: left of '.Deaths' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1339): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1339): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1341): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1341): error C2228: left of '.bSpree' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1341): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1357): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1357): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1363): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1363): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1376): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1376): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1378): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1378): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1382): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1382): error C2228: left of '.pID' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1382): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1412): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1412): error C2228: left of '.Place' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1412): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1418): error C2227: left of '->Players' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1418): error C2228: left of '.Kills' must have class/struct/union type
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(1418): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(7670): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\WndWorld.cpp(7670): error C3861: 'g_pPVP': identifier not found, even with argument-dependent lookup
C:\Users\utente\Desktop\dev\Sources\_Interface\FuncTextCmd.cpp(1428): error C2065: 'g_Console' : undeclared identifier
C:\Users\utente\Desktop\dev\Sources\_Interface\FuncTextCmd.cpp(1428): error C2228: left of '.Show' must have class/struct/union type
        type is ''unknown-type''
C:\Users\utente\Desktop\dev\Sources\_Interface\FuncTextCmd.cpp(1583): error C2065: 'g_pPVP' : undeclared identifier



My WndWorld.cpp: http://www.mediafire.com/?bzfyvtzazjte1pe
My FuncTextCmd.cpp: http://www.mediafire.com/?ua2d8845axa18wc


Can anyone explain how can i declare "g_pPVP" and where?


Thanks,
Here is how you might declare an int called i.

int i;

Here is how you might declare a someObject called g_pPVP

someObject g_pPVP;

Is that enough?
closed account (zb0S216C)
In addition to Moschops' reply, a pointer is declared like this: <TYPE> *<IDENTIFIER>; I noticed that the compiler is reporting the arrow operator as part of the errors.

Wazzak
Last edited on
Sorry guys, i didnt get it yet.
Moschops, I always love your replies haha
¿what is g_pPVP?
You can scan your errors and for each one of them declare your undeclared variables.
For example in
1
2
C:\Users\utente\Desktop\dev\Sources\_Interface\FuncTextCmd.cpp(1583): error C2227: left of '->pCount' must point to class/struct/union
        type is ''unknown-type''

find the variable left of '->pCount' which you haven't declared obviously. Continue the same way.
Topic archived. No new replies allowed.