- Mesaj
- 702
- Çözümler
- 41
- Beğeni
- 171
- Puan
- 609
- Ticaret Puanı
- 0
Merhaba;
Char.cpp de ne değişiklik yaptım hatırlamıyorum ama böyle bir hata alıyorum, hatanın ne olduğunu anlayamadım;
Char.cpp de ne değişiklik yaptım hatırlamıyorum ama böyle bir hata alıyorum, hatanın ne olduğunu anlayamadım;
Kod:
char.cpp: In member function 'int CHARACTER::AddGiftGridItem(int, int)':
char.cpp:945:17: error: invalid use of incomplete type 'class CGrid'
945 | int iPos = grid->FindBlank(1, size);
| ^~
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
char.cpp:950:11: error: invalid use of incomplete type 'class CGrid'
950 | if (!grid->IsEmpty(iPos, 1, size))
| ^~
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
char.cpp:954:6: error: invalid use of incomplete type 'class CGrid'
954 | grid->Put(iPos, 1, size);
| ^~
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
char.cpp: In member function 'void CHARACTER::RefreshGift()':
char.cpp:983:27: error: invalid use of incomplete type 'class CGrid'
983 | grid = M2_NEW CGrid(15, 8);
| ^
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
char.cpp:984:6: error: invalid use of incomplete type 'class CGrid'
984 | grid->Clear();
| ^~
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
char.cpp:1016:9: error: invalid use of incomplete type 'class CGrid'
1016 | grid->Clear();
| ^~
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
In file included from stdafx.h:10,
from char.cpp:1:
debug_allocator.h:157:31: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
157 | #define M2_DELETE(p) delete (p)
| ^
char.cpp:1028:3: note: in expansion of macro 'M2_DELETE'
1028 | M2_DELETE(grid);
| ^~~~~~~~~
char.cpp:1028:13: warning: invalid use of incomplete type 'class CGrid'
1028 | M2_DELETE(grid);
debug_allocator.h:157:30: note: in definition of macro 'M2_DELETE'
157 | #define M2_DELETE(p) delete (p)
| ^
In file included from char.cpp:18:
exchange.h:4:7: note: forward declaration of 'class CGrid'
4 | class CGrid;
| ^~~~~
In file included from stdafx.h:10,
from char.cpp:1:
debug_allocator.h:157:31: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
157 | #define M2_DELETE(p) delete (p)
| ^
char.cpp:1028:3: note: in expansion of macro 'M2_DELETE'
1028 | M2_DELETE(grid);
| ^~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-volatile'
gmake[1]: *** [Makefile:182: .obj/char.o] Error 1