Newton and 6.x edtiont

Previous topic - Next topic

neseir

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

Kitty Hello

aw, bad.
In your code add:

Code (glbasic) Select

LOCAL array[]
DIM array[1][1] // force 2D arrays for Newton


neseir

Thanks for the quick response !!!

Nice. Works now  :good:

//Eirik

mr_x

I've got this error, when I try to compile:

Code (glbasic) Select

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

Kitty Hello

did you update yesterday?

mr_x

#5
Yes.

Kitty Hello

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.

mr_x

No it didn't work. I have installed 6.105 and there newton examples compiles fine.

Kitty Hello

attach your newton.gbas here, please. Mine is attaced. See if that differs?



[attachment deleted by admin]

mr_x

#9
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]