I am trying to compile the source from update.zip and am running into some errors. I was wondering what specific command line options you specified with freebasic in order to compile it properly. I tried -lang qb, but I am still getting some errors, I'm thinking dealing with the program length.
--Tam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The -arch 586 probably isn't necessary, but it reduces the size of the exe and I doubt that anyone is using less than a 586/Pentium.
At one stage I was also using -t 8192 to increase the stack size, but I've since moved the biggest arrays into the COMMON block using COMMAND SHARED arrayname().
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is the latest source included in update.zip? I'm trying to compile that source and i'm still getting a slew of errors, I can't compile the source from 9.3.0 either, however I am able to compile the mkcompil.bas file.
I am using fbc 0.17b, with the following command and i'm getting a slew of errors:
fbc -exx -arch 586 -maxerr inf gcbasic.bas
A small sample ......
gcbasic.bas(21) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION AsmTidy$ (DS$)'
gcbasic.bas(22) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION CheckLine (DS$)'
gcbasic.bas(23) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcAdd$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(24) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcCondition$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(25) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcLogic$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(26) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcMult$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(27) error 136: Default types or suffixes are only valid in -lang deprecated or qb in 'DECLARE FUNCTION CompleteINSTR ()'
gcbasic.bas(28) error 137: Suffixes are only valid in -lang deprecated or qb, found 'Source' in 'DECLARE FUNCTION CountOccur (Source$, Search$)'
gcbasic.bas(29) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION GetByte$ (DS$, BS%)'
gcbasic.bas(30) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION GetDestSub$(Origin$)'
gcbasic.bas(31) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION GetSub$(Origin$)'
gcbasic.bas(32) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION IsASM (DS$)'
gcbasic.bas(33) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION IsCalc (DS$)'
gcbasic.bas(34) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsConst (T$)'
gcbasic.bas(35) error 137: Suffixes are only valid in -lang deprecated or qb, found 'Var' in 'DECLARE FUNCTION IsDefined (Var$)'
gcbasic.bas(36) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsDivider (T$)'
gcbasic.bas(37) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsLet(T$)'
gcbasic.bas(38) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsString (T$)'
gcbasic.bas(39) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION IsWord (DS$, CurrentSub$)'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay, different versions of 0.17b! I'm using an early version that was released last year sometime.
Maybe the -lang deprecated option will make it behave?
Try FreeBASIC 0.16b, it should work. I've just downloaded the current 0.17b now, and will see if anything can convince it to compile other than getting rid of all the suffixes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hugh,
I am trying to compile the source from update.zip and am running into some errors. I was wondering what specific command line options you specified with freebasic in order to compile it properly. I tried -lang qb, but I am still getting some errors, I'm thinking dealing with the program length.
--Tam
I use FreeBASIC v0.17b and this command:
fbc -arch 586 -exx gcbasic.bas
The -arch 586 probably isn't necessary, but it reduces the size of the exe and I doubt that anyone is using less than a 586/Pentium.
At one stage I was also using -t 8192 to increase the stack size, but I've since moved the biggest arrays into the COMMON block using COMMAND SHARED arrayname().
Do you require the -lang qb option? I'm having trouble compiling the source from update.zip still.
Nope, -lang qb is not needed and will probably cause errors.
Is the latest source included in update.zip? I'm trying to compile that source and i'm still getting a slew of errors, I can't compile the source from 9.3.0 either, however I am able to compile the mkcompil.bas file.
I am using fbc 0.17b, with the following command and i'm getting a slew of errors:
fbc -exx -arch 586 -maxerr inf gcbasic.bas
A small sample ......
gcbasic.bas(21) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION AsmTidy$ (DS$)'
gcbasic.bas(22) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION CheckLine (DS$)'
gcbasic.bas(23) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcAdd$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(24) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcCondition$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(25) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcLogic$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(26) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION CompileCalcMult$(V1$, Act$, V2$, Origin$)'
gcbasic.bas(27) error 136: Default types or suffixes are only valid in -lang deprecated or qb in 'DECLARE FUNCTION CompleteINSTR ()'
gcbasic.bas(28) error 137: Suffixes are only valid in -lang deprecated or qb, found 'Source' in 'DECLARE FUNCTION CountOccur (Source$, Search$)'
gcbasic.bas(29) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION GetByte$ (DS$, BS%)'
gcbasic.bas(30) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION GetDestSub$(Origin$)'
gcbasic.bas(31) error 137: Suffixes are only valid in -lang deprecated or qb, found '(' in 'DECLARE FUNCTION GetSub$(Origin$)'
gcbasic.bas(32) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION IsASM (DS$)'
gcbasic.bas(33) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION IsCalc (DS$)'
gcbasic.bas(34) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsConst (T$)'
gcbasic.bas(35) error 137: Suffixes are only valid in -lang deprecated or qb, found 'Var' in 'DECLARE FUNCTION IsDefined (Var$)'
gcbasic.bas(36) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsDivider (T$)'
gcbasic.bas(37) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsLet(T$)'
gcbasic.bas(38) error 137: Suffixes are only valid in -lang deprecated or qb, found 'T' in 'DECLARE FUNCTION IsString (T$)'
gcbasic.bas(39) error 137: Suffixes are only valid in -lang deprecated or qb, found 'DS' in 'DECLARE FUNCTION IsWord (DS$, CurrentSub$)'
Okay, different versions of 0.17b! I'm using an early version that was released last year sometime.
Maybe the -lang deprecated option will make it behave?
Try FreeBASIC 0.16b, it should work. I've just downloaded the current 0.17b now, and will see if anything can convince it to compile other than getting rid of all the suffixes.
No luck with -lang deprecated, try 0.16b
Thanks! That worked, perhaps this should be included in the readme for linux users?