PDA

View Full Version : getting error "constant is too big" when compiling last cvs


Camaris
03-07-2005, 10:06 PM
Hi, anybody could tell me how could i compile the last cvs code? I am getting this error "constant is too big" when i am compiling project zone.exe

Should i change any #define max_items, npc, or faction ?

fathernitwit
03-08-2005, 05:52 AM
step 1. read the error, it tells you what line it is on
step 2. change the constant on that line to be smaller.

this happens cause windows is dumb about how it handles those constants. I made them arbitrarily large (like 99999e111) so they would become infinite, which windows refuses to do. Just make them some other larger number like 999e10

Camaris
03-09-2005, 02:44 AM
Hi fatherNiwit, i really am having problems for to do it, because i get that errors of "constant too big" on lines that could to be wrong... I meant that i dont get this errors on sentences like:

x = 99999e111

Only 2 or 3 errors was on this way, and i fixed it easily, but i still get a lot of "constant too big" errors more and i am not sure what constants i must modify.

Thx for u help.

sonicintuition
03-17-2005, 02:06 AM
Edit: Posted elsewhere, ignore this.