Other languages > GLBasic - de
Fehlermeldung
(1/1)
Worebu:
Moin,
was möchte mir der Interpreter wohl mitteilen?
--- Quote ---_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.15.394 SN:c4f1f6f1 - 3D, NET
Wordcount:11 commands
compiling:
F:\Temp\glbasic\gpc_temp0.cpp: In function 'int __GLBASIC__::__MainGameSub_()':
F:\Temp\glbasic\gpc_temp0.cpp:27:9: error: no match for 'operator=' (operand types are '__GLBASIC__::DGStrArray {aka __GLBASIC__::DGArray<__GLBASIC__::DGStr>}' and '__GLBASIC__::DGStr')
lese_Str=INKEY_Str();
^
In file included from F:\Temp\glbasic\gpc_temp.h:2:0,
from F:\Temp\glbasic\gpc_temp0.cpp:1:
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:641:18: note: candidate: __GLBASIC__::DGArray<T>& __GLBASIC__::DGArray<T>::operator=(const __GLBASIC__::DGArray<T>&) [with T = __GLBASIC__::DGStr]
DGArray& operator=(const DGArray& a) {
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:641:18: note: no known conversion for argument 1 from '__GLBASIC__::DGStr' to 'const __GLBASIC__::DGArray<__GLBASIC__::DGStr>&'
F:\Temp\glbasic\gpc_temp0.cpp:28:18: error: ambiguous overload for 'operator+' (operand types are '__GLBASIC__::DGStr' and '__GLBASIC__::DGStrArray {aka __GLBASIC__::DGArray<__GLBASIC__::DGStr>}')
chip_Str=chip_Str+lese_Str;
^
F:\Temp\glbasic\gpc_temp0.cpp:28:18: note: candidate: operator+(DGInt {aka double}, DGInt {aka double}) <built-in>
F:\Temp\glbasic\gpc_temp0.cpp:28:18: note: candidate: operator+(DGNat {aka int}, DGInt {aka double}) <built-in>
F:\Temp\glbasic\gpc_temp0.cpp:28:18: note: candidate: operator+(int64 {aka long long int}, DGInt {aka double}) <built-in>
In file included from F:\Temp\glbasic\gpc_temp.h:2:0,
from F:\Temp\glbasic\gpc_temp0.cpp:1:
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:269:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(int, const __GLBASIC__::DGStr&)
DGStr operator zz (int a, const DGStr& b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:271:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, const __GLBASIC__::DGStr&)
DGStr operator zz (int64 a, const DGStr& b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:273:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(float, const __GLBASIC__::DGStr&)
DGStr operator zz (float a, const DGStr& b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:275:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(double, const __GLBASIC__::DGStr&)
DGStr operator zz (double a, const DGStr& b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:283:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, const __GLBASIC__::DGStr&)
DGStr operator zz (const DGStr& a, const DGStr& b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:284:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int)
DGStr operator zz (const DGStr& a, int b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:285:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int64)
DGStr operator zz (const DGStr& a, int64 b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:286:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, float)
DGStr operator zz (const DGStr& a, float b); \
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:287:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, double)
DGStr operator zz (const DGStr& a, double b);
^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
MK_OPERATOR(+)
^
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Dauer: 1.4 sek. Zeit: 16:36
Erstellen: 0 erfolgreich.
*** 1 FEHLGESCHLAGEN ***
--- End quote ---
Das wird nicht mit 11 Zeilen Code zusammen, oder?
Hat jemand eine Idee?
Schranz0r:
Zeig mal bitte deinen Code, der den Fehler wirft.
Es knallt bei:
lese$=INKEY$();
chip$=chip$+lese$;
Irgendwas davon sind Arrays?
Worebu:
Sorry, mein Fehler, hatte lese$ noch mit DIM lese$[] stehen. :S
Trotzdem Danke, hätte es wohl übersehen.
Schranz0r:
:D
Navigation
[0] Message Index
Go to full version