DDgui *FATAL ERROR* report in compilation

Previous topic - Next topic

CCJ

Hi all,

When compiling the DDgui project files from the "DDgui_proportional" download [unmodified] I get the following compilation error output:

Code (glbasic) Select

_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.6.922 SN:db0cc0c3 - 3D, NET
"DDgui_test.gbas"(72) warning : implicitly created GLOBAL  : num$
"DDgui_test.gbas"(73) warning : implicitly created GLOBAL  : col$
"DDgui_test.gbas"(74) warning : implicitly created GLOBAL  : text$
"DDgui_test.gbas"(83) warning : implicitly created GLOBAL  : now
"DDgui_test.gbas"(84) warning : implicitly created GLOBAL  : flips
"DDgui_test.gbas"(85) warning : implicitly created GLOBAL  : nt
"DDgui_test.gbas"(87) warning : implicitly created GLOBAL  : old
"DDgui_test.gbas"(87) warning : implicitly created GLOBAL  : fps
"DDgui_test.gbas"(180) warning : implicitly created GLOBAL  : index
Wordcount:3009 commands
compiling:
C:\DOCUME~1\jeffreyc\LOCALS~1\Temp\glbasic\gpc_temp2.cpp: In function `DGInt __GLBASIC__::ReadKern(__GLBASIC__::DGStr, __GLBASIC__::DGIntArray&, __GLBASIC__::DGIntArray&, DGInt)':
C:\DOCUME~1\jeffreyc\LOCALS~1\Temp\glbasic\gpc_temp2.cpp:1855: error: invalid initialization of reference of type 'DGNat&' from expression of type 'double'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:938: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
C:\DOCUME~1\jeffreyc\LOCALS~1\Temp\glbasic\gpc_temp2.cpp:1863: error: invalid initialization of reference of type 'DGNat&' from expression of type 'double'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:938: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 123.4 sec. Time: 12:48
Build: 0 succeeded.
*** 1 FAILED ***



The DDgui project is documented as having been created in 2008 with version 5 of GLBasic-- did something big change since then that would have caused this example program to fail?

Thanks,

CCJ
CresCo Games
Sample Our Reality...

http://crescogames.x10hosting.com

MrTAToad

Yes, there have been a lot of changes - both to DDgui and the language itself

If you want to use DDgui, the current version is available in Samples/Common

CCJ

Aha, yes well that would cause a problem.  Even in the most recent build [that I can find by going into Showroom -> DDgui] you have to find/replace all instances of the apparently outdated FILLRECT command with DRAWRECT for it to work... Otherwise the compiler simply reports "syntax error," which isn't a whole lot of help.  Anyway, thanks for the help!
CresCo Games
Sample Our Reality...

http://crescogames.x10hosting.com