Page 1 of 1

Compiler Problems

Posted: Fri Oct 03, 2003 7:17 am
by Guest
Help! Help! Help!

Have a deadline coming up and I am stuck so bad that it is startling me!

Wrote a calculation problem that runs fine in the QBasic 4.5 interpreter but fails to compile. Program uses a lot of variables. Variables are initialized in arrays which are erased as soon as variables are not used anymore.

Statements are simple conditional IF THEN END IF statements with some subroutines and gosub referals. Not too outrageous at all I think.

However when I try to compile program, compiler gives error message "One(1) Severe Error, expression too complex", with a referral to a specific statement. If I erase related expression, compiler gives same error but referring to another statement. And so on. If I totally erase a section with a lot of calculation lines using a lot of variables, program does compile without an error.

Tried virually everything. Should I use an other compiler??? Are there compiler limitations that I am not aware of??? Maximum variables??? What about QBASIC workspace, what is it and what are limitations???

Anybody out there with a QB brain and a helping hand give me some hints please.

Pleun

Re: Compiler Problems

Posted: Wed Oct 15, 2003 4:49 am
by Guest
Did you ever try the use of FUNCTION or/and SUB ?

This way you might get a better result. As an example, you can use FUNCTION/SUB for your maths and reduce the size of the main program in the same time. This way you will give a better chance to the compiler to do a good job.

I made a big program with CHAIN function even with FUNCTIONs and SIBs. What it does, it calculate matrix with or without complex numbers and it works fine. I never get an error with the compiler under QB45.

If you want try it, look at:
http://www3.sympatico.ca/nova.celesta/

My program is in french (very simple to catch if you know some about matrix).  In a near futur, I will translate in english. For now, I'm too busy to do so.

Re: Compiler Problems

Posted: Fri Oct 24, 2003 12:08 am
by Guest
:D
Problem Solved!

Thanks.