Hi
I'm trying to run the examples provided with the 6.x edition of GLBasic but all the examples involving the Newton physics library fails to compile. Is this a known issue or are there some workarounds that are not set up by the IDE during the installation. I saw in the forum that there were some ongoing development to addapt to the Newton 2.0 edition but I could not find anything related to the current edition (I tested these examples ok in the 5.x edition of GLBasic).
Regards
Eirik
aw, bad.
In your code add:
LOCAL array[]
DIM array[1][1] // force 2D arrays for Newton
Thanks for the quick response !!!
Nice. Works now :good:
//Eirik
I've got this error, when I try to compile:
compiling:
C:\DOCUME~1\9335~1\LOCALS~1\Temp\glbasic\gpc_temp1.cpp: In function `DGInt __GLBASIC__::NewtonBodySetUserData(DGInt, DGInt)':
C:\DOCUME~1\9335~1\LOCALS~1\Temp\glbasic\gpc_temp1.cpp:1508: error: `data' was not declared in this scope
did you update yesterday?
Yes.
OK, copy the directory C:\program files\GLBasic\samples manually over your "my_homepath\samples". It's working here, and I put it in the update.
No it didn't work. I have installed 6.105 and there newton examples compiles fine.
attach your newton.gbas here, please. Mine is attaced. See if that differs?
[attachment deleted by admin]
It works with your file. Maybe the NewtonSDK.gbas (Samples\_Projects_\NewtonSDK\NewtonSDK.gbas) that examples refers to is older then then the (Samples\__Projects__\NewtonSDK\NewtonSDK.gbas).
[attachment deleted by admin]