Cannot Compile Old Program.

Just starting out? Need help? Post your questions and find answers here.
Maximus_Primal
User
User
Posts: 12
Joined: Sat Dec 18, 2004 7:01 pm
Location: England, UK
Contact:

Cannot Compile Old Program.

Post 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
Real Power Comes From Sharing With Those Who Think They Have It All!
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post 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)
regards,
benny!
-
pe0ple ar3 str4nge!!!
Post Reply