Page 1 of 1

Cannot Compile Old Program.

Posted: Tue Jul 12, 2005 6:26 am
by Maximus_Primal
Hi,

Just come back to Pure Basic to try and complete a project left alone for the last 6 months and for some reason it won't compile or run anymore! :(

When I try to compile it in JaPBe, I get the following error:

Line 874: A constant cannot have a type

It seems to do this on ALL programs not just the ones I wrote as part of my project, I cannot even run the examples included with Pure Basic! So I am asumming I have either set something up wrong or something.

Does anyone know what I have done wrong?

I am running PB 2.93, JaPBE 2.4.7.17 . I am running on a 3.2Ghz P4, Windows XP (fully updated to SP2 and all updates).


Any help would be appreicated as I really want to complete this project as the software I was writing I am now in desperate need for! :)

Thanks

Max

Posted: Tue Jul 12, 2005 6:53 am
by benny
It sounds like you have updated your PB Compiler. Due to several changes
old programs won't run without slight modification to the new code standard.

In your case you have to change the constants so that they do not have a
type anymore.

For example :

Code: Select all

#FLOATCONSTANT.f =    3.141          ; IS NOW WRONG

#FLOATCONSTANT =      3.141          ; IS RIGHT SINCE V3.8 (I think)