GCstudio 1.0 does not work. Does not start at all.
Im compiling my project...
chip 16f676,4
G+Stool V20200921 www.FrankSteinberg.de >>fst'20<<
Great Cow BASIC Pre-processing (Copyright 2007..2021)
C:\port\GCB@Syn\GreatCowBasic\include\Inspecting_Libraries.h
Great Cow BASIC (0.98.07 2021-07-24 (Windows 32 bit) : Build 1005)
Assembling program ...
Errors have been found:
Error: GCASM: Symbol 7.0 has not been defined at DECF PORTC.0,W
Error: GCASM: Symbol 39.0 has not been defined at SUBWF ADC.0,W
What do mean errors? How can I corretc them?
I do not understand source of a problem.
Text of symbols is not found in work directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Incorrect config. INTOSC_OSC_NOCLKOUT is not valid. Use PICINFO to see what is valid. meas is port.pin and therefore you cannot to maths on it. charge is port.pin and therefore you cannot to maths on it.
Using single letter for variables is not good practice but this is ? for i=1 to adc.0 What is adc.0 ? Bit zero of the word variable acd? that would either 0 tor 1.
And, wait adc us where adc can be 1 us is not valid. You need to clock the chip at 12Mhz to make 1 us happen. So, use a constant and work some method that uses a repeat-end repeat.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank You, IDE works. Code is corrected, look from a side is usefull.
Proect goes hardly... One more trouble.
It says now end if without if, but all is seem on its place. Editor does not mark left the group.
... By general logic, bit variable can mean integer 0 or 1 for add-substract, zero or unity operator for multiply. In GCB all this is not realized. Sadly, I wil know. One more limit.
Mmmm. This CRs. Legasy Turbo Pascal was unsensitive for them at all.
I seem it will be logically better to write
if condition
then code
else code
endif
Editor marks it correctly, but compiler says wrong.
Well, will know too. Thanks, works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, people.
GCstudio 1.0 does not work. Does not start at all.
Im compiling my project...
chip 16f676,4
G+Stool V20200921 www.FrankSteinberg.de >>fst'20<<
Great Cow BASIC Pre-processing (Copyright 2007..2021)
C:\port\GCB@Syn\GreatCowBasic\include\Inspecting_Libraries.h
Great Cow BASIC (0.98.07 2021-07-24 (Windows 32 bit) : Build 1005)
Assembling program ...
Errors have been found:
Error: GCASM: Symbol 7.0 has not been defined at DECF PORTC.0,W
Error: GCASM: Symbol 39.0 has not been defined at SUBWF ADC.0,W
What do mean errors? How can I corretc them?
I do not understand source of a problem.
Text of symbols is not found in work directory.
I can look for you.
Please post your program as an attachment.
Eva
Regarding your GC Studio - please post to https://sourceforge.net/p/gcbasic/discussion/596084/thread/2f0beef127/ We do need all feedback on installations.
Evan
Its interesting how to corect such bugs.
Hi,
What errors are you seeing?
And, can you post the top four lines of the .ASM file afer you have compiled.
I get these errors - sorry, but all of these are correctly identified errors than need to be corrected.
Incorrect config.
INTOSC_OSC_NOCLKOUT
is not valid. Use PICINFO to see what is valid.meas
is port.pin and therefore you cannot to maths on it.charge
is port.pin and therefore you cannot to maths on it.Using single letter for variables is not good practice but this is ?
for i=1 to adc.0
What isadc.0
? Bit zero of the word variable acd? that would either 0 tor 1.And,
wait adc us
where adc can be 1 us is not valid. You need to clock the chip at 12Mhz to make 1 us happen. So, use a constant and work some method that uses a repeat-end repeat.Thank You, IDE works. Code is corrected, look from a side is usefull.
Proect goes hardly... One more trouble.
It says now end if without if, but all is seem on its place. Editor does not mark left the group.
See attached.
But, you need to decide to use one line IF-THEN or multiline IF-THEN-END IF. You had a bit of both.
AND,
Add
#OPTION EXPLICIT
to your program to discover all the other errors that need correction. :-)I will update the compiler to better handle the ELSE statement / ELSE error handling.
:-)
Last edit: Anobium 2023-03-18
The error message are correct. See the diagram.

Last edit: Anobium 2023-03-18
... By general logic, bit variable can mean integer 0 or 1 for add-substract, zero or unity operator for multiply. In GCB all this is not realized. Sadly, I wil know. One more limit.
Mmmm. This CRs. Legasy Turbo Pascal was unsensitive for them at all.
I seem it will be logically better to write
if condition
then code
else code
endif
Editor marks it correctly, but compiler says wrong.
Well, will know too. Thanks, works.
Your code style should be
if condition then
code
else
code
endif
News. The new build of the compiler and toolchain now include an improved IF-THEN ELSE construct.
Get the new build via GCSTUDIO automatic updates.
The new build now supports
ELSE code
.So, the following is now valid.
The
else code
is expanded and processed normally. A good change to the compiler.