GLBasic forum

Main forum => GLBasic - en => Topic started by: neseir on 2009-Jan-05

Title: Newton and 6.x edtiont
Post by: neseir on 2009-Jan-05
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
Title: Re: Newton and 6.x edtiont
Post by: Kitty Hello on 2009-Jan-05
aw, bad.
In your code add:

Code (glbasic) Select

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

Title: Re: Newton and 6.x edtiont
Post by: neseir on 2009-Jan-05
Thanks for the quick response !!!

Nice. Works now  :good:

//Eirik
Title: Re: Newton and 6.x edtiont
Post by: mr_x on 2009-Apr-07
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
Title: Re: Newton and 6.x edtiont
Post by: Kitty Hello on 2009-Apr-07
did you update yesterday?
Title: Re: Newton and 6.x edtiont
Post by: mr_x on 2009-Apr-07
Yes.
Title: Re: Newton and 6.x edtiont
Post by: Kitty Hello on 2009-Apr-07
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.
Title: Re: Newton and 6.x edtiont
Post by: mr_x on 2009-Apr-07
No it didn't work. I have installed 6.105 and there newton examples compiles fine.
Title: Re: Newton and 6.x edtiont
Post by: Kitty Hello on 2009-Apr-07
attach your newton.gbas here, please. Mine is attaced. See if that differs?



[attachment deleted by admin]
Title: Re: Newton and 6.x edtiont
Post by: mr_x on 2009-Apr-07
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]